Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9820

validateMessagesAndAssignOffsetsCompressed allocates batch iterator which is not used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: core
    • Labels:
      None

      Description

      KAFKA-8106 added a new skip key/value iterator that reduces allocations https://github.com/apache/kafka/commit/3e9d1c1411c5268de382f9dfcc95bdf66d0063a0.

      Unfortunately in LogValidator it creates that iterator but it never uses it, and this is quite expensive in terms of allocations.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lucasbradstreet Lucas Bradstreet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: