diff --git hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java index 091d854..5c3d215 100644 --- hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java +++ hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java @@ -317,7 +317,7 @@ public class ChoreService implements ChoreServicer { * in the middle of execution will be interrupted and shutdown. This service will be unusable * after this method has been called (i.e. future scheduling attempts will fail). */ - public void shutdown() { + public synchronized void shutdown() { scheduler.shutdownNow(); if (LOG.isInfoEnabled()) { LOG.info("Chore service for: " + coreThreadPoolPrefix + " had " + scheduledChores.keySet()