public void shutdownService(ChoreService service) {
    service.shutdown();
    Waiter.waitFor(CONF, 1000, () -> service.isTerminated());
  }
@param failThreshold Number of times the Chore fails when trying to execute initialChore
                     before succeeding.
hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java