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

Region split needs to clear force split flag at the end of SplitRequest run

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.99.0, 0.98.4
    • Fix Version/s: 0.99.0, 0.98.5
    • Component/s: regionserver
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      force split flag is used when a user requests region split and specifies a split key.

      region.forceSplit(splitPoint);
      

      We need to clear force split flag at the end of SplitRequest run. If the region split is successful, this parent region will go away and there is no need to clear this flag. But we will have problem when the split is not successful or rejected. Here is the case:

      1. User requested region split at rownkey-n.
      2. We set forceSplit in the region with rownkey-n.
      3. The split request got rejected because the region had references.
      4. After a while, there was a system request split for the same region.
      5. The region would use forceSplit and rownkey-n to split. What should have happened is that the region split is done based on system split policy.

        Attachments

        1. HBASE-11632-master.patch
          2 kB
          Jerry He
        2. HBASE-11632-master-v2.patch
          7 kB
          Jerry He
        3. HBASE-11632-v2-0.98.patch
          7 kB
          Jerry He

          Activity

            People

            • Assignee:
              jinghe Jerry He
              Reporter:
              jinghe Jerry He
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: