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

GroupMetadataManager.loadGroupsAndOffsets decompresses record batch needlessly

    XMLWordPrintableJSON

    Details

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

      Description

      when reading records from a consumer offsets batch, the entire batch is decompressed multiple times (per record) as part of calling `batch.baseOffset`. this is a very expensive operation being called in a loop for no reason:

        Attachments

        1. kafka batch iteration funtime.png
          230 kB
          radai rosenblatt

          Issue Links

            Activity

              People

              • Assignee:
                radai radai rosenblatt
                Reporter:
                radai radai rosenblatt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: