[ 
https://issues.apache.org/jira/browse/GEODE-8579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209152#comment-17209152
 ] 

ASF GitHub Bot commented on GEODE-8579:
---------------------------------------

aaronlindsey commented on a change in pull request #5598:
URL: https://github.com/apache/geode/pull/5598#discussion_r500581229



##########
File path: 
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/membership/GMSJoinLeave.java
##########
@@ -349,9 +349,9 @@ public boolean join() throws MemberStartupException {
               && state.possibleCoordinator.equals(this.localAddress)) {
             // if we haven't contacted a member of a cluster maybe this node 
should
             // become the coordinator.
-            if (state.joinedMembersContacted <= 0 && (now >= 
locatorGiveUpTime) &&
-                (tries >= minimumRetriesBeforeBecomingCoordinator ||
-                    state.locatorsContacted >= locators.size())) {
+            if (state.joinedMembersContacted <= 0 && (now >= locatorGiveUpTime 
&&
+                tries >= minimumRetriesBeforeBecomingCoordinator) ||
+                state.locatorsContacted >= locators.size()) {

Review comment:
       It looks like this evaluates to `true` any time we are able to contact 
all of the locators, even if one of those locators is part of an existing DS. 
In other words, if `joinedMembersContacted` is greater than zero but 
`locatorsContacted` is equal to `locators.size()` it tries to become the 
coordinator. Is that OK/can that even happen? I don't know enough about this 
code to say for sure.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Locators should stop waiting for locator-wait-time if all locators contacted
> ----------------------------------------------------------------------------
>
>                 Key: GEODE-8579
>                 URL: https://issues.apache.org/jira/browse/GEODE-8579
>             Project: Geode
>          Issue Type: Improvement
>          Components: membership
>            Reporter: Dan Smith
>            Priority: Major
>              Labels: pull-request-available
>
> If locator-wait-time is set on one or more locators, the locators can 
> currently end up waiting for the entire locator-wait-time before starting up, 
> even if all locators can contact each other.
> If the locators can all contact each other, they should start up right away 
> and not wait any longer, even if locator-wait-time is set.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to