HBase
  1. HBase
  2. HBASE-5603

rolling-restart.sh script hangs when attempting to detect expiration of /hbase/master znode.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.92.0, 0.94.0, 0.95.2
    • Fix Version/s: 0.94.0, 0.95.0
    • Component/s: Zookeeper
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Due to bugfix ZOOKEEPER-1059 (ZK 3.4.0+), the rolling-restart.sh script will hang when attempting to make sure the /hbase/master znode is deleted.

      Here's the code

      # make sure the master znode has been deleted before continuing
          zparent=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.parent`
          if [ "$zparent" == "null" ]; then zparent="/hbase"; fi
          zmaster=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.master`
          if [ "$zmaster" == "null" ]; then zmaster="master"; fi
          zmaster=$zparent/$zmaster
          echo -n "Waiting for Master ZNode ${zmaster} to expire"
          while bin/hbase zkcli stat $zmaster >/dev/null 2>&1; do
            echo -n "."
            sleep 1
          done
          echo #force a newline
      

      Prior to ZOOKEEPER-1059, stat on a null znode would NPE and cause zkcli to exit with retcode 1. Afterwards, the null is caught, zkcli will exit with 0 in the case where the znode is present and in the case where it does not exist.

      1. HBASE-5603.patch
        0.5 kB
        Jonathan Hsieh

        Issue Links

          Activity

          Jonathan Hsieh created issue -
          Jonathan Hsieh made changes -
          Field Original Value New Value
          Link This issue depends on HBASE-2418 [ HBASE-2418 ]
          Jonathan Hsieh made changes -
          Link This issue is related to HBASE-5589 [ HBASE-5589 ]
          Lars Hofhansl made changes -
          Priority Major [ 3 ] Blocker [ 1 ]
          Jonathan Hsieh made changes -
          Attachment HBASE-5603.patch [ 12519136 ]
          Jonathan Hsieh made changes -
          Assignee Jonathan Hsieh [ jmhsieh ]
          Jonathan Hsieh made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 0.92.2 [ 12319888 ]
          Fix Version/s 0.94.0 [ 12316419 ]
          Fix Version/s 0.96.0 [ 12320040 ]
          Resolution Fixed [ 1 ]
          Lars Hofhansl made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          stack made changes -
          Fix Version/s 0.95.0 [ 12324094 ]
          Fix Version/s 0.94.0 [ 12316419 ]
          Fix Version/s 0.92.2 [ 12319888 ]
          Fix Version/s 0.96.0 [ 12320040 ]
          Lars Hofhansl made changes -
          Fix Version/s 0.94.0 [ 12316419 ]
          Gavin made changes -
          Link This issue depends on HBASE-2418 [ HBASE-2418 ]
          Gavin made changes -
          Link This issue depends upon HBASE-2418 [ HBASE-2418 ]
          stack made changes -
          Fix Version/s 0.98.0 [ 12323143 ]
          stack made changes -
          Fix Version/s 0.98.0 [ 12323143 ]

            People

            • Assignee:
              Jonathan Hsieh
              Reporter:
              Jonathan Hsieh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development