Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13269

Limit result array preallocation to avoid OOME with large scan caching values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 0.98.12
    • None
    • None
    • Reviewed

    Description

      Scan#setCaching(Integer.MAX_VALUE) will likely terminate the regionserver with an OOME due to preallocation of the result array according to this parameter. We should limit the preallocation to some sane value. Definitely affects 0.98 (fix needed to HRegionServer) and 1.0.x (fix needed to RsRPCServices), not sure about later versions.

      Attachments

        1. HBASE-13269-0.98.patch
          2 kB
          Andrew Kyle Purtell
        2. HBASE-13269-0.98.patch
          1 kB
          Andrew Kyle Purtell
        3. HBASE-13269-1.0.patch
          2 kB
          Andrew Kyle Purtell
        4. HBASE-13269-1.0.patch
          1 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: