geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [2/2] incubator-geode git commit: GEODE-77 install membership view even if quorum has been lost
Date Tue, 08 Sep 2015 18:43:59 GMT
GEODE-77 install membership view even if quorum has been lost

If enable-network-partition-detection isn't enabled we need to go ahead
and install a new membership view when quorum has been lost.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/29ce4613
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/29ce4613
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/29ce4613

Branch: refs/heads/feature/GEODE-77
Commit: 29ce461318f98ee040447c10b6f18ef719b0ba39
Parents: a0a9ce8
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Tue Sep 8 11:43:20 2015 -0700
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Tue Sep 8 11:43:20 2015 -0700

----------------------------------------------------------------------
 .../internal/membership/gms/membership/GMSJoinLeave.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/29ce4613/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
index d852e1b..5295581 100755
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
@@ -674,7 +674,7 @@ public class GMSJoinLeave implements JoinLeave, MessageHandler {
   
   public void installView(NetView newView) {
     
-    logger.info("received new view: {}", newView);
+    logger.info("received new view: {}\nold view is: {}", newView, currentView);
     
     synchronized(viewInstallationLock) {
       if (currentView != null && currentView.getViewId() >= newView.getViewId())
{
@@ -687,8 +687,8 @@ public class GMSJoinLeave implements JoinLeave, MessageHandler {
           List<InternalDistributedMember> crashes = newView.getActualCrashedMembers(currentView);
           services.getManager().forceDisconnect(
               LocalizedStrings.Network_partition_detected.toLocalizedString(crashes.size(),
crashes));
+          return;
         }
-        return;
       }
       
       currentView = newView;


Mime
View raw message