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

Close region may stuck when region is compacting and skipped most cells read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1, 3.0.0-alpha-2, 2.4.10
    • 2.6.0, 3.0.0-alpha-4
    • Compaction
    • None

    Description

      We found in our cluster about stop region stuck. The region is compacting, and its store files has many TTL expired cells. Close region state marker(HRegion#writestate.writesEnabled) is not checked in compaction, because most cells were skipped. 

       

       

      HBASE-23968 has encountered similar problem, but the solution in it is outer the method

      InternalScanner#next(List<Cell> result, ScannerContext scannerContext), which will not return if there are many skipped cells, for current compaction scanner context. As a result, we need to return in time in the next method, and then check the stop marker.

       

       

       

      Attachments

        1. Master-UI-RIT.png
          221 kB
          Xiaolin Ha
        2. RS-region-state.png
          851 kB
          Xiaolin Ha

        Issue Links

          Activity

            People

              Xiaolin Ha Xiaolin Ha
              Xiaolin Ha Xiaolin Ha
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: