You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by en...@apache.org on 2015/12/15 21:23:43 UTC
[2/3] hbase git commit: HBASE-14977 ChoreService.shutdown may result
in ConcurrentModificationException (Vladimir Rodionov)
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/ef19c214
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ef19c214
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ef19c214
Branch: refs/heads/branch-1.2
Commit: ef19c2147d9c8cf88d8145bfe9e9bf25ff01206d
Parents: f391b13
Author: Enis Soztutar <en...@apache.org>
Authored: Tue Dec 15 11:57:28 2015 -0800
Committer: Enis Soztutar <en...@apache.org>
Committed: Tue Dec 15 11:58:49 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/ef19c214/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 091d854..5c3d215 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()