geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [2/2] geode git commit: GEODE-3034 exception on auto-reconnect attempt with multicast enabled
Date Tue, 06 Jun 2017 22:48:18 GMT
GEODE-3034 exception on auto-reconnect attempt with multicast enabled

A bug in JGroups causes this exception.  A workaround is to add a
non-usable UUID-based address to the view that we use to reinialize
JGroups during an auto-reconnect attempt.  We've sent this issue to
the JGroups email list.


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

Branch: refs/heads/develop
Commit: 7bad40f368e14182b3cbc88d56505858af3a0ddd
Parents: 31b72ba
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Tue Jun 6 15:46:53 2017 -0700
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Tue Jun 6 15:46:53 2017 -0700

----------------------------------------------------------------------
 .../internal/membership/gms/messenger/JGroupsMessenger.java      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/7bad40f3/geode-core/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/JGroupsMessenger.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/JGroupsMessenger.java
b/geode-core/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/JGroupsMessenger.java
index b07aa59..390824e 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/JGroupsMessenger.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/JGroupsMessenger.java
@@ -306,7 +306,9 @@ public class JGroupsMessenger implements Messenger {
         myChannel = (JChannel) oldChannel;
         // scrub the old channel
         ViewId vid = new ViewId(new JGAddress(), 0);
-        View jgv = new View(vid, new ArrayList<>());
+        List<Address> members = new ArrayList<>();
+        members.add(new UUID(0, 0));// TODO open a JGroups JIRA for GEODE-3034
+        View jgv = new View(vid, members);
         this.myChannel.down(new Event(Event.VIEW_CHANGE, jgv));
         UUID logicalAddress = (UUID) myChannel.getAddress();
         if (logicalAddress instanceof JGAddress) {


Mime
View raw message