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

LazyTimeIndex & LazyOffsetIndex may cause niobufferoverflow in concurrent state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.3.0, 2.3.1
    • 2.4.0, 2.3.2
    • core
    • Important

    Description

      this timeindex get function is not thread safe ,may cause create some timeindex.

      When create timeindex not exactly one ,may cause mappedbytebuffer position to end. Then write index entry to this mmap file will cause java.nio.BufferOverflowException.

       

       

       

       

      Attachments

        1. image-2019-11-07-17-42-13-852.png
          97 kB
          shilin Lu
        2. image-2019-11-07-17-44-05-357.png
          142 kB
          shilin Lu
        3. image-2019-11-07-17-46-53-650.png
          2.05 MB
          shilin Lu
        4. image-2022-11-17-09-02-20-774.png
          52 kB
          Bob Tiernay

        Issue Links

          Activity

            People

              amironov Alex Mironov
              lushilin shilin Lu
              Ismael Juma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: