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

Add ability to create custom compaction request

    XMLWordPrintableJSON

Details

    • Hide
      Enable coprocessors to submit custom compaction requests.

      This compaction request is used (if not null) through the entire compaction process. If no custom compaction request is submitted (its null - the normal case) then we we build a new compaction request via the usual mechanisms in the Store.

      Adding this mechanism is particularly useful when 'special' compactions are desired and you want to do things like: only change certain files for a particularly requested compaction or follow a single compaction through the queue.
      Show
      Enable coprocessors to submit custom compaction requests. This compaction request is used (if not null) through the entire compaction process. If no custom compaction request is submitted (its null - the normal case) then we we build a new compaction request via the usual mechanisms in the Store. Adding this mechanism is particularly useful when 'special' compactions are desired and you want to do things like: only change certain files for a particularly requested compaction or follow a single compaction through the queue.

    Description

      You can request that a compaction be started, but you can't be sure when that compaction request completes. This is a simple update to the CompactionRequest interface and the compact-split thread on the RS that doesn't actually impact the RS exposed interface.

      This is particularly useful for CPs so they can control starting/running a compaction.

      Update - Better description (3/20/13):
      Enable coprocessors to submit custom compaction requests.

      This compaction request is used (if not null) through the entire compaction process. If no custom compaction request is submitted (its null - the normal case) then we we build a new compaction request via the usual mechanisms in the Store.

      Adding this mechanism is particularly useful when 'special' compactions are desired and you want to do things like: only change certain files for a particularly requested compaction or follow a single compaction through the queue.

      Attachments

        1. hbase-7725_0.94-v0.patch
          8 kB
          Jesse Yates
        2. example.java
          3 kB
          Jesse Yates
        3. hbase-7725_with-attributes-0.94-v0.patch
          36 kB
          Jesse Yates
        4. hbase-7725_with-attributes-0.94-v1.patch
          43 kB
          Jesse Yates
        5. hbase-7725-v0.patch
          42 kB
          Jesse Yates
        6. hbase-7725-v1.patch
          42 kB
          Jesse Yates
        7. hbase-7725-v3.patch
          90 kB
          Jesse Yates
        8. hbase-7725-v4.patch
          54 kB
          Jesse Yates
        9. hbase-7725-v5.patch
          57 kB
          Jesse Yates
        10. hbase-7725-v6.patch
          57 kB
          Jesse Yates
        11. hbase-7725-addenum.patch
          5 kB
          Jesse Yates
        12. hbase-7725-addenum-v1.patch
          5 kB
          Jesse Yates
        13. hbase-7725_0.94-v3.patch
          53 kB
          Jesse Yates
        14. hbase-7725_0.94-v4.patch
          55 kB
          Jesse Yates

        Issue Links

          Activity

            People

              jesse_yates Jesse Yates
              jesse_yates Jesse Yates
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: