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

"Major compaction triggered" and "Skipping major compaction" messages lack the region information

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The below messages coming from RatioBasedCompactionPolicy log the default .toString() output of itself, which is not useful:

      2015-01-16 06:15:07,166 DEBUG org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy: Major compaction triggered on store org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy@4acab1f5; time since last major compaction 339994249ms
      
      2015-01-16 09:49:12,872 DEBUG org.apache.hadoop.hbase.regionserver.compactions.RatioBasedCompactionPolicy: Skipping major compaction of org.apache.hadoop.hbase.regionserver.compactions.ExploringCompactionPolicy@7b9f47bb because one (major) compacted file only and oldestTime 6795587394ms is < ttl=15552000000
      

      It should log the store/region information instead. Unfortunately, this information seems to be unavailable at this point, so more context needs to be supplied while calling RatioBasedCompactionPolicy.isMajorCompaction().

      Attachments

        1. HBASE-12870_addendum.patch
          1 kB
          Chinmay Kulkarni
        2. HBASE-12870.patch
          4 kB
          Chinmay Kulkarni

        Activity

          People

            ckulkarni Chinmay Kulkarni
            haridsv Hari Krishna Dara
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: