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

RegionInfo.isOffline is now a duplication with RegionInfo.isSplit

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-1, 2.4.0
    • Component/s: meta
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The only place, where we set it to true is in splitRegion, and at the same time we will set split to true.

      So in general, I suggest that we deprecated isOffline and isSplitParent in RegionInfo, only leave the isSplit method. And in RegionInfoBuilder, we deprecated setOffline and only leave the setSplit method.

      This could make our code base cleaner.

      And for serialization compatibility, we'd better still keep the split and offline fields in the actual RegionInfo datastructure for a while.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                niuyulin Yulin Niu
                Reporter:
                zhangduo Duo Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: