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

TestRegionServerReportForDuty can be flaky: hang or timeout

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 0.98.12, 2.0.0
    • Fix Version/s: 1.1.0, 0.98.13, 1.0.2, 2.0.0
    • Component/s: test
    • Labels:
      None

      Description

      This test case is from HBASE-13317.
      The test uses a custom region server to simulate reportForDuty in a master failover case. This custom RS would start, then the primary master would fail, then the custom RS would reportForDuty to the second master after master failover.

      The test occasionally will hang or timeout.
      The root cause is that during first master initialization, the master would assign meta (and create and assign namespace table). It is possible that the meta is assigned to the custom RS, which has started (place a rs node on the ZK), but will not really check-in and be online. Then the master will go thru multiple re-assignment, which can be lengthy and cause trouble.

      There are a couple of issues I see in the master assignment code:
      1. Master puts all the region servers obtained from ZK rs node into the online server list, including those that have not checked-in via RPC. And we will assign meta or other regions based on whole list.
      2. When one assign plan fails, we don't exclude the failed server when picking the next destination, which may prolong the assignment process.

      I will provide a patch to fix the test case. The other issues mentioned are up to discussion.

        Attachments

        1. HBASE-13526.patch
          2 kB
          Jerry He

          Activity

            People

            • Assignee:
              jinghe Jerry He
              Reporter:
              jinghe Jerry He
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: