hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [3/3] hbase git commit: HBASE-14977 ChoreService.shutdown may result in ConcurrentModificationException (Vladimir Rodionov)
Date Tue, 15 Dec 2015 20:23:44 GMT
HBASE-14977 ChoreService.shutdown may result in ConcurrentModificationException (Vladimir Rodionov)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2c936160
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2c936160
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2c936160

Branch: refs/heads/branch-1.1
Commit: 2c9361602ca4ed12746d992c1161d2dbc08d8d64
Parents: 6ae430f
Author: Enis Soztutar <enis@apache.org>
Authored: Tue Dec 15 11:57:28 2015 -0800
Committer: Enis Soztutar <enis@apache.org>
Committed: Tue Dec 15 12:20:52 2015 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/ChoreService.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2c936160/hbase-common/src/main/java/org/apache/hadoop/hbase/ChoreService.java
----------------------------------------------------------------------
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 17c75f8..56c728e 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
@@ -296,7 +296,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()


Mime
View raw message