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

MasterAddressTracker & ZKNamespaceManager ZK listeners are missed after master recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.1
    • None
    • None
    • Reviewed

    Description

      TestZooKeeper#testRegionAssignmentAfterMasterRecoveryDueToZKExpiry always failed at the following verification for me in my dev env(you have to run the single test not the whole TestZooKeeper suite to reproduce)

      assertEquals("Number of rows should be equal to number of puts.", numberOfPuts, numberOfRows);
      

      We missed two ZK listeners after master recovery MasterAddressTracker & ZKNamespaceManager.

      My current patch is to fix the JIRA issue while I'm wondering if we should totally remove the master failover implementation when ZK session expired because this causes reinitialize HMaster partially which is error prone and not a clean state to start from.

      Attachments

        1. HBase-9918.patch
          5 kB
          Jeffrey Zhong
        2. hbase-9918.v1.patch
          5 kB
          Jeffrey Zhong

        Activity

          People

            jeffreyz Jeffrey Zhong
            jeffreyz Jeffrey Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: