hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-13146 Race Condition in ScheduledChore and ChoreService
Date Tue, 03 Mar 2015 19:32:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 2c02f2f15 -> 0c4c60a99


HBASE-13146 Race Condition in ScheduledChore and ChoreService

Signed-off-by: stack <stack@apache.org>


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

Branch: refs/heads/branch-1
Commit: 0c4c60a99ecdd211b59bf127e62d3572cfe781e0
Parents: 2c02f2f
Author: zhangduo <zhangduo@wandoujia.com>
Authored: Tue Mar 3 22:44:10 2015 +0800
Committer: stack <stack@apache.org>
Committed: Tue Mar 3 11:32:12 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/0c4c60a9/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 f565841..5e2e43e 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
@@ -131,10 +131,10 @@ public class ChoreService implements ChoreServicer {
     if (chore == null) return false;
 
     try {
+      chore.setChoreServicer(this);
       ScheduledFuture<?> future =
           scheduler.scheduleAtFixedRate(chore, chore.getInitialDelay(), chore.getPeriod(),
             chore.getTimeUnit());
-      chore.setChoreServicer(this);
       scheduledChores.put(chore, future);
       return true;
     } catch (Exception exception) {


Mime
View raw message