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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: