Skip to content

Commit

Permalink
PAYARA-1762 fix race in boot of Payara Micro when multiple instances …
Browse files Browse the repository at this point in the history
…initialising so member name not present (#1685)
  • Loading branch information
smillidge authored and lprimak committed Jun 17, 2017
1 parent b28dc1f commit 4b2c968
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ private synchronized void bootstrapHazelcast() {
List<String> takenNames = new ArrayList<>();
for (com.hazelcast.core.Member member : clusterMembers) {
if (member != theInstance.getCluster().getLocalMember()
&& member.getStringAttribute(HazelcastCore.INSTANCE_GROUP_ATTRIBUTE).equalsIgnoreCase(
memberGroup)) {
&& member.getStringAttribute(HazelcastCore.INSTANCE_GROUP_ATTRIBUTE) != null
&& member.getStringAttribute(HazelcastCore.INSTANCE_GROUP_ATTRIBUTE).equalsIgnoreCase(memberGroup)) {
takenNames.add(member.getStringAttribute(HazelcastCore.INSTANCE_ATTRIBUTE));
}
}
Expand Down

0 comments on commit 4b2c968

Please sign in to comment.