Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 3.0.0-alpha-1, 2.2.0, 2.1.1, 2.0.2
    • hbck
    • None
    • Reviewed
    • Hide
      Fence out hbase-1.x hbck1 instances. Stop them making state changes on an hbase-2.x cluster; they could do damage. We do this by writing the hbck1 lock file into place on hbase-2.x Master start-up.

      To disable this new behavior, set hbase.write.hbck1.lock.file to false
      Show
      Fence out hbase-1.x hbck1 instances. Stop them making state changes on an hbase-2.x cluster; they could do damage. We do this by writing the hbck1 lock file into place on hbase-2.x Master start-up. To disable this new behavior, set hbase.write.hbck1.lock.file to false

    Description

      busbey left a note in the parent issue that I only just read which has a prescription for how we might block hbck1 from running against an hbase-2.x (hbck1 could damage a hbase-2....Its disabled in hbase-2 but an errant hbck1 from an hbase-1.x install might run).

      Here is quote from parent issue:

      I was idly thinking about how to stop HBase v1 HBCK. Thanks to HBASE-11405, we know that all HBase 1.y.z hbck instances should refuse to run if there's a lock file at '/hbase/hbase-hbck.lock' (given defaults). How about HBase v2 places that file permanently in place and replace the contents (usually just an IP address) with a note about how you must not run HBase v1 HBCK against the cluster?
      

      There is also the below:

      We could pick another location for locking on HBase version 2 and start building in a version check of some kind?
      

      ... to which I'd answer, lets see. hbck2 is a different beast. It asks the master to do stuff. It doesn't do it itself, as hbck1 did. So no need of a lock/version.

      Attachments

        1. HBASE-21072-addendum.patch
          1.0 kB
          Duo Zhang
        2. HBASE-21072.branch-2.0.003.patch
          15 kB
          Michael Stack
        3. HBASE-21072.branch-2.0.003.patch
          15 kB
          Michael Stack
        4. HBASE-21072.branch-2.0.002.patch
          15 kB
          Michael Stack
        5. HBASE-21072.branch-2.0.001.patch
          15 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: