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

Skipping compact for this region if the table disable compaction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.7, 2.4.13
    • 2.6.0, 2.4.18, 2.5.6, 3.0.0-beta-1
    • Compaction
    • None
    • HBase 2.3.7

    • Reviewed

    Description

      CompactionChecker.chore() is called periodically for compacting. as follow:

      //代码占位符
      protected void chore() {
          for (Region r : this.instance.onlineRegions.values()) {
              // Skip compaction if region is read only
              if (r == null || r.isReadOnly()) {
                  continue;
              }
      
      
              HRegion hr = (HRegion) r;
              for (HStore s : hr.stores.values()) {
                  // ...
              }
          }
      } 

      Just skip compact for the region if table disable compaction.

      Attachments

        Issue Links

          Activity

            People

              guluo guluo
              guluo guluo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: