Details

    • Incompatible change, Reviewed
    • Hide
      Add two new methods in CompactionLifeCycleTracker.
      The notExecuted method will be called if the selectCompaction failed or space quota limitation reached.
      The completed method will be called after all the requested compactions are finished. The compaction scheduling is pre Store so if you request compaction on a region it may lead to multiple compactions.
      Remove the User parameter in Region.requestCompaction methods as it is useless for CP users.
      Add a boolean parameter to indicate whether you want to do a major compaction. And so that the triggerMajorCompaction method is removed.
      Remove the getCompactionProgress method in Store interface.
      Add a UT to confirm that CompactionLifeCycleTracker works correctly, and it also shows how to use CompactionLifeCycleTracker to wait for the completion of a compaction.
      Show
      Add two new methods in CompactionLifeCycleTracker. The notExecuted method will be called if the selectCompaction failed or space quota limitation reached. The completed method will be called after all the requested compactions are finished. The compaction scheduling is pre Store so if you request compaction on a region it may lead to multiple compactions. Remove the User parameter in Region.requestCompaction methods as it is useless for CP users. Add a boolean parameter to indicate whether you want to do a major compaction. And so that the triggerMajorCompaction method is removed. Remove the getCompactionProgress method in Store interface. Add a UT to confirm that CompactionLifeCycleTracker works correctly, and it also shows how to use CompactionLifeCycleTracker to wait for the completion of a compaction.

    Attachments

      1. HBASE-18989-v2.patch
        52 kB
        Duo Zhang
      2. HBASE-18989-v1.patch
        49 kB
        Duo Zhang
      3. HBASE-18989.patch
        45 kB
        Duo Zhang
      4. HBASE-18989.patch
        45 kB
        Duo Zhang
      5. HBASE-18989.patch
        45 kB
        Duo Zhang

      Issue Links

        Activity

          People

            zhangduo Duo Zhang
            zhangduo Duo Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: