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

Close redundant memstore scanners

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      The HBASE-17655 remove the MemStoreScanner and it causes that the MemStore#getScanner(readpt) returns multi KeyValueScanner which consist of active, snapshot and pipeline. But StoreScanner only remove one mem scanner when refreshing current scanners.

          for (int i = 0; i < currentScanners.size(); i++) {
            if (!currentScanners.get(i).isFileScanner()) {
              currentScanners.remove(i);
              break;
            }
          }
      

      The older scanners kept in the StoreScanner will hinder GC from releasing memory and lead to multiple scans on the same data.

      Attachments

        1. HBASE-18019.v1.patch
          6 kB
          Chia-Ping Tsai
        2. HBASE-18019.v0.patch
          6 kB
          Chia-Ping Tsai

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: