Repository: incubator-slider
Updated Branches:
  refs/heads/develop 57d0d2ed2 -> 4e8e92e11


SLIDER-730 Lack of synchronization in RoleStatus#serialize()


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/4e8e92e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/4e8e92e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/4e8e92e1

Branch: refs/heads/develop
Commit: 4e8e92e110369dcd0643ac76a0b24df9f2a45420
Parents: 57d0d2e
Author: tedyu <[email protected]>
Authored: Thu Dec 18 14:25:42 2014 -0800
Committer: tedyu <[email protected]>
Committed: Thu Dec 18 14:25:42 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/slider/server/appmaster/state/RoleStatus.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/4e8e92e1/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java
----------------------------------------------------------------------
diff --git 
a/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java
 
b/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java
index 74a1c9c..0ffc309 100644
--- 
a/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java
+++ 
b/slider-core/src/main/java/org/apache/slider/server/appmaster/state/RoleStatus.java
@@ -285,7 +285,7 @@ public final class RoleStatus implements Cloneable {
     return stats;
   }
 
-  public SerializedComponentInformation serialize() {
+  public synchronized SerializedComponentInformation serialize() {
     SerializedComponentInformation info = new SerializedComponentInformation();
     info.name = name;
     info.priority = getPriority();

Reply via email to