DonalEvans commented on a change in pull request #5485:
URL: https://github.com/apache/geode/pull/5485#discussion_r478744835



##########
File path: 
geode-core/src/main/java/org/apache/geode/distributed/internal/ClusterDistributionManager.java
##########
@@ -1387,7 +1387,7 @@ void waitForViewInstallation(long id) throws 
InterruptedException {
       return;
     }
     synchronized (membershipViewIdGuard) {
-      while (membershipViewIdAcknowledged < id && 
!stopper.isCancelInProgress()) {
+      while (!stopper.isCancelInProgress()) {

Review comment:
       I think that this LGTM alert is incorrect, since it fails to take into 
account the value of `membershipViewIdAcknowledged` being modified by another 
thread, which seems to be what this method expects to happen. This false 
positive alert has been suppressed in this PR: 
https://github.com/apache/geode/pull/5473 to prevent it from showing up in 
future.




----------------------------------------------------------------
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


Reply via email to