HBase
  1. HBase
  2. HBASE-5777

MiniHBaseCluster cannot start multiple region servers

    Details

    • Type: Test Test
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      MiniHBaseCluster can try to start multiple region servers. But all of them except one will die in putting up the web UI
      because of BindException since HConstants.REGIONSERVER_INFO_PORT_AUTO is set to false by default.

      This issue will make many unit tests depending on multiple region servers flaky, such as TestAdmin.

      1. hbase-5777_v2.patch
        0.6 kB
        Jimmy Xiang
      2. hbase-5777.patch
        0.5 kB
        Jimmy Xiang

        Activity

        Hide
        Jimmy Xiang added a comment -

        Let me find a work-around instead of changing the code, which could affect other people who uses MiniHBaseCluster.

        Show
        Jimmy Xiang added a comment - Let me find a work-around instead of changing the code, which could affect other people who uses MiniHBaseCluster.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12522493/hbase-5777.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +1 tests included. The patch appears to include 3 new or modified tests.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        -1 findbugs. The patch appears to introduce 3 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in .

        Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
        Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12522493/hbase-5777.patch against trunk revision . +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 3 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in . Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1500//console This message is automatically generated.
        Hide
        Jimmy Xiang added a comment -

        This patch doesn't hurt. In eclipse, someone may want to check the UI sometimes.

        Show
        Jimmy Xiang added a comment - This patch doesn't hurt. In eclipse, someone may want to check the UI sometimes.
        Hide
        Jimmy Xiang added a comment -

        I see. When I run unit tests in eclipse, the hbase-site.xml at src/test is not used.
        Maybe we can disable the UI in MiniHBaseCluster too, how about that?

        Show
        Jimmy Xiang added a comment - I see. When I run unit tests in eclipse, the hbase-site.xml at src/test is not used. Maybe we can disable the UI in MiniHBaseCluster too, how about that?
        Hide
        stack added a comment -

        We have an hbase-site.xml at src/test that is used when we run tests. It disables the UI. You think we should apply this patch too Jimmy?

        Show
        stack added a comment - We have an hbase-site.xml at src/test that is used when we run tests. It disables the UI. You think we should apply this patch too Jimmy?

          People

          • Assignee:
            Jimmy Xiang
            Reporter:
            Jimmy Xiang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development