Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21879 Read HFile's block to ByteBuffer directly instead of to byte for reducing young gc purpose
  3. HBASE-22463

Some paths in HFileScannerImpl did not consider block#release which will exhaust the ByteBuffAllocator

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.3.0
    • None
    • None
    • Reviewed

    Description

      When I debug the issue HBASE-22422, I observed that the ByteBuffAllocator#usedBufCount will was always increasing and all direct ByteBuffers would be exhausted, which lead to may heap allocation happen. The comment here [1] is also related to this problem.

      Check the code path, the HFileScannerImpl is the biggest suspect, so create issue to address this.

      1. https://issues.apache.org/jira/browse/HBASE-22387?focusedCommentId=16838446&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16838446

      Attachments

        1. allocation-after-applied-patch-v2.png
          53 kB
          Zheng Hu
        2. allocation-after-running-12h-with-patch-v4.png
          55 kB
          Zheng Hu
        3. HBASE-22463.HBASE-21879.v1.patch
          16 kB
          Zheng Hu
        4. HBASE-22463.HBASE-21879.v1.patch
          11 kB
          Zheng Hu
        5. HBASE-22463.HBASE-21879.v1.patch
          12 kB
          Zheng Hu
        6. HBASE-22463.HBASE-21879.v2.patch
          46 kB
          Zheng Hu
        7. HBASE-22463.HBASE-21879.v3.patch
          52 kB
          Zheng Hu
        8. HBASE-22463.HBASE-21879.v4.patch
          52 kB
          Zheng Hu
        9. use-share-type-memory.png
          137 kB
          Zheng Hu

        Issue Links

          Activity

            People

              openinx Zheng Hu
              openinx Zheng Hu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: