diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java index 091d8541388..5c3d2158538 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java +++ b/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()