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

Avoid calling post* hook when procedure fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2, 2.0.0
    • master, proc-v2
    • None
    • Reviewed

    Description

      Ramesh pointed out a case where I think we're mishandling some post* MasterObserver hooks. Specifically, I'm looking at the deleteNamespace.

      We synchronously execute the DeleteNamespace procedure. When the user provides a namespace that isn't empty, the procedure does a rollback (which is just a no-op), but this doesn't propagate an exception up to the NonceProcedureRunnable in HMaster#deleteNamespace. It took Ramesh pointing it out a bit better to me that the code executes a bit differently than we actually expect.

      I think we need to double-check our post hooks and make sure we aren't invoking them when the procedure actually failed. cc/ Apache9, stack.

      Attachments

        1. HBASE-19952.001.branch-2.patch
          21 kB
          Josh Elser
        2. HBASE-19953.002.branch-2.patch
          21 kB
          Josh Elser
        3. HBASE-19953.003.branch-2.patch
          41 kB
          Josh Elser
        4. HBASE-19953.branch-2.0.addendum.patch
          1 kB
          Allan Yang

        Issue Links

          Activity

            People

              elserj Josh Elser
              rmani Ramesh Mani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: