helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject [22/50] [abbrv] git commit: Restrict shutdown message to a specific session
Date Thu, 10 Jul 2014 17:05:05 GMT
Restrict shutdown message to a specific session


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

Branch: refs/heads/master
Commit: 2ab31ddb503b726fe22936ce8831877d9fae3292
Parents: 224c7ea
Author: Kanak Biscuitwala <kanak@apache.org>
Authored: Mon Feb 24 15:30:29 2014 -0800
Committer: Kanak Biscuitwala <kanak@apache.org>
Committed: Mon Feb 24 15:30:29 2014 -0800

----------------------------------------------------------------------
 .../apache/helix/controller/stages/ContainerProvisioningStage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/2ab31ddb/helix-core/src/main/java/org/apache/helix/controller/stages/ContainerProvisioningStage.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/controller/stages/ContainerProvisioningStage.java
b/helix-core/src/main/java/org/apache/helix/controller/stages/ContainerProvisioningStage.java
index bc3e0c6..ae433e0 100644
--- a/helix-core/src/main/java/org/apache/helix/controller/stages/ContainerProvisioningStage.java
+++ b/helix-core/src/main/java/org/apache/helix/controller/stages/ContainerProvisioningStage.java
@@ -276,7 +276,7 @@ public class ContainerProvisioningStage extends AbstractBaseStage {
               if (participant.isAlive()) {
                 Message message = new Message(MessageType.SHUTDOWN, UUID.randomUUID().toString());
                 message.setTgtName(participant.getId().toString());
-                message.setTgtSessionId("*");
+                message.setTgtSessionId(participant.getRunningInstance().getSessionId());
                 message.setMsgId(message.getId());
                 accessor.createProperty(
                     keyBuilder.message(participant.getId().toString(), message.getId()),
message);


Mime
View raw message