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

Unmap before resizing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • core, log
    • Windows, Linux, Mac OS

    Description

      While I was studying how MappedByteBuffer works, I saw a sharing runtime exception on Windows. I applied what I learned to generate a patch which uses an internal open JDK API to solve this problem.

      Following Jay's advice, I made a helper method called tryUnmap().

      Attachments

        1. KAFKA-0.8-1008-v7.patch
          17 kB
          Jay Kreps
        2. KAFKA-0.8-1008-v8.patch
          18 kB
          Jay Kreps
        3. KAFKA-1008-v6.patch
          15 kB
          Jay Kreps
        4. KAFKA-1008-v9-trunk.patch
          20 kB
          Jay Kreps
        5. KAFKA-trunk-1008-v7.patch
          32 kB
          Elizabeth Wei
        6. unmap-v5.patch
          12 kB
          Elizabeth Wei

        Issue Links

          Activity

            People

              jkreps Jay Kreps
              lizziew Elizabeth Wei
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified