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

hbck should not take a lock unless fixing errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.2.0, 2.0.0
    • hbck, util
    • None
    • Reviewed
    • Hide
      HBCK no longer takes a lock until there are changes to the cluster being made.

      The old behavior can be achieved by passing the -exclusive flag.
      Show
      HBCK no longer takes a lock until there are changes to the cluster being made. The old behavior can be achieved by passing the -exclusive flag.
    • Patch

    Description

      By default, hbck is run in a read-only checker mode. In this case, it is
      sensible to let others run. By default, the balancer is left alone,
      which may cause spurious errors, but cannot leave the balancer in a bad
      state. It is dangerous to leave the balancer by accident, so it is only
      ever enabled after fixing, it will never be forced off because of
      racing.

      When hbck is run in fixer mode, it must take an exclusive lock and
      disable the balancer, or all havoc will break loose.

      If you want to stop hbck from running in parallel, the -exclusive flag
      will create the lock file. If you want to force -disableBalancer, that
      option is available too. This makes more semantic sense than -noLock and
      -noSwitchBalancer, respectively.

      This task is related to HBASE-14092.

      Attachments

        1. HBASE-14201-v1.patch
          8 kB
          Simon Law
        2. HBASE-14201-v0.patch
          6 kB
          Simon Law

        Activity

          People

            sfllaw Simon Law
            sfllaw Simon Law
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: