Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7593 Supporting HSync and lease recovery
  3. HDDS-10471

[hsync] MockDatanodeStorage.writeChunk should make a copy of byte string

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDDS-7593
    • None

    Description

      MockDatanodeStorage.writeChunk simply adds the bytestring chunk info into its internal map, and after HDDS-9843 which made chunk buffer direct buffer, it causes some sort of memory corruption as described in HDDS-10431. Suspect it's a JVM bug.

      Solution is simple: make a copy of the byte buffer.

      Thanks smeng for narrowing down the culprit.

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: