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

TestMasterShutdown.testMasterShutdownBeforeStartingAnyRegionServer is flaky

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: test
    • Labels:
      None

      Description

          Thread shutdownThread = new Thread("Shutdown-Thread") {
            @Override
            public void run() {
              LOG.info("Before call to shutdown master");
              try {
                try (Connection connection =
                    ConnectionFactory.createConnection(util.getConfiguration())) {
                  try (Admin admin = connection.getAdmin()) {
                    admin.shutdown();
                  }
                }
                LOG.info("After call to shutdown master");
                cluster.waitOnMaster(MASTER_INDEX);
              } catch (Exception e) {
              }
            }
          };
      

      https://builds.apache.org/job/HBASE-Flaky-Tests/28970/artifact/hbase-server/target/surefire-reports/org.apache.hadoop.hbase.master.TestMasterShutdown-output.txt

      In the output for a failed running, we only have 'Before call to shutdown master' but no 'After call to shutdown master', so I think there must be something wrong when calling admin.shutdown, but in the catch block below we just ignore the exception.

        Attachments

          Activity

            People

            • Assignee:
              Apache9 Duo Zhang
              Reporter:
              Apache9 Duo Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: