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

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

jujoramos commented on a change in pull request #4978:
URL: https://github.com/apache/geode/pull/4978#discussion_r415863628



##########
File path: 
geode-core/src/main/java/org/apache/geode/distributed/internal/LocatorLoadSnapshot.java
##########
@@ -50,7 +50,8 @@
 
   private final Map<ServerLocation, String[]> serverGroupMap = new HashMap<>();
 
-  private final Map<String, Map<ServerLocation, LoadHolder>> connectionLoadMap 
= new HashMap<>();
+  private final Map<String, Map<ServerLocationAndMemberId, LoadHolder>> 
connectionLoadMap =

Review comment:
       This entire class has several modifications and new non-trivial methods, 
we should add several tests to verify the correct behaviour.

##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/DistributedPingMessage.java
##########
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more 
contributor license
+ * agreements. See the NOTICE file distributed with this work for additional 
information regarding
+ * copyright ownership. The ASF licenses this file to You under the Apache 
License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the 
License. You may obtain a
+ * copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software 
distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 
KIND, either express
+ * or implied. See the License for the specific language governing permissions 
and limitations under
+ * the License.
+ */
+package org.apache.geode.internal.cache;
+
+import java.io.DataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+
+import org.apache.geode.distributed.DistributedMember;
+import org.apache.geode.distributed.internal.ClusterDistributionManager;
+import org.apache.geode.distributed.internal.HighPriorityDistributionMessage;
+import 
org.apache.geode.distributed.internal.membership.InternalDistributedMember;
+import org.apache.geode.internal.cache.tier.sockets.ClientHealthMonitor;
+import org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID;
+import org.apache.geode.internal.serialization.DeserializationContext;
+import org.apache.geode.internal.serialization.SerializationContext;
+import org.apache.geode.internal.serialization.Version;
+
+public class DistributedPingMessage extends HighPriorityDistributionMessage {

Review comment:
       This is a new class, unit and distribution tests are required. 

##########
File path: 
geode-core/src/main/java/org/apache/geode/distributed/internal/membership/InternalDistributedMember.java
##########
@@ -641,4 +641,5 @@ public UUID getUUID() {
   public interface HostnameResolver {
     InetAddress getInetAddress(ServerLocation location) throws 
UnknownHostException;
   }
+

Review comment:
       Unnecessary empty line here.




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


> Wrong management of receivers with same hostname-for-senders
> ------------------------------------------------------------
>
>                 Key: GEODE-7565
>                 URL: https://issues.apache.org/jira/browse/GEODE-7565
>             Project: Geode
>          Issue Type: Improvement
>          Components: wan
>            Reporter: Alberto Bustamante Reyes
>            Assignee: Alberto Bustamante Reyes
>            Priority: Major
>              Labels: pull
>          Time Spent: 8h
>  Remaining Estimate: 0h
>
> There is a problem with Geode WAN replication when GW receivers are 
> configured with the same hostname-for-senders and port on all servers. [ 1 ]
> The problem experienced is that shutting down one server is stopping 
> replication to this cluster until the server is up again. This is because 
> Geode incorrectly assumes there are no more alive servers when just one of 
> them is down, because since they share hostname-for-senders and port, they 
> are treated as one same server.
> Our proposal consists on expanding internal data in locators with enough 
> information to distinguish servers in the beforementioned use case. The same 
> intervention is likely needed in the client pools and possibly elsewhere in 
> the source code.
> ----
> [ 1 ] : The reason for such a setup is deploying Geode cluster on a 
> Kubernetes cluster where all GW receivers are reachable from the outside 
> world on the same VIP and port. Other kinds of configuration (different 
> hostname and/or different port for each GW receiver) are not cheap from OAM 
> and resources perspective in cloud native environments and also limit some 
> important use-cases (like scaling).
>  
> Link to thread in DEV mailing list: 
> [https://markmail.org/thread/6qakx67rxiokdsec]



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

Reply via email to