HBase
  1. HBase
  2. HBASE-5926

Delete the master znode after a master crash

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: 0.95.0
    • Component/s: master, scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This is the continuation of the work done in HBASE-5844.
      But we can't apply exactly the same strategy: for the region server, there is a znode per region server, while for the master & backup master there is a single znode for both.

      So if we apply the same strategy as for a regionserver, we may have this scenario:
      1) Master starts
      2) Backup master starts
      3) Master dies
      4) ZK detects it
      5) Backup master receives the update from ZK
      6) Backup master creates the new master node and become the main master
      7) Previous master script continues
      8) Previous master script deletes the master node in ZK
      9) => issue: we deleted the node just created by the new master

      This should not happen often (usually the znode will be deleted soon enough), but it can happen.

      1. 5926.v10.patch
        13 kB
        Nicolas Liochon
      2. 5926.v11.patch
        14 kB
        Nicolas Liochon
      3. 5926.v13.patch
        19 kB
        Nicolas Liochon
      4. 5926.v14.patch
        19 kB
        Nicolas Liochon
      5. 5926.v6.patch
        13 kB
        Nicolas Liochon
      6. 5926.v8.patch
        18 kB
        Nicolas Liochon
      7. 5926.v9.patch
        18 kB
        Nicolas Liochon

        Issue Links

          Activity

            People

            • Assignee:
              Nicolas Liochon
              Reporter:
              Nicolas Liochon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development