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

Add force compaction and force split operations to UI and Admin



    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.19.0
    • None
    • None


      Would help debugging or at start of big upload or if we have a hot region we want to distribute over the cluster if we could just manually force the splitting of regions.

      I thought it would be just a little messing in jsp but its a bit more than that.

      Actual decision to split is made down in guts of the Store. Won't split if any references still around and a file must be > maxsize.

      Chatting w/ Jon Gray, could set a flag on the region that we want to split. Could do this from UI (Can get to HRegion instance from HRS instance in HRS jsp). Stores have references to their hosting regions (I think). When figuring if we're to split, check the force split flag up in the hosting region.

      To get the flag checked, safest way is to just force a flush (Otherwise, have to mess w/ locks in the compact/splitter thread). Registering a flush request on a region is easy enough to do. Its a public method on HRS (or HR).


        1. 902.fix.patch
          11 kB
          Andrew Kyle Purtell
        2. 902-1.patch
          15 kB
          Andrew Kyle Purtell
        3. 902-2.patch
          25 kB
          Andrew Kyle Purtell
        4. 902-3.patch
          30 kB
          Andrew Kyle Purtell
        5. split.png
          59 kB
          Andrew Kyle Purtell
        6. ui.1.png
          70 kB
          Andrew Kyle Purtell

        Issue Links



              apurtell Andrew Kyle Purtell
              stack Michael Stack
              0 Vote for this issue
              0 Start watching this issue