Dan Smith created GEODE-2186:
--------------------------------
Summary: Pulse WAN information may indicate that senders are
unhealthy even if they are not
Key: GEODE-2186
URL: https://issues.apache.org/jira/browse/GEODE-2186
Project: Geode
Issue Type: Bug
Components: wan
Reporter: Dan Smith
The WAN information tile on the pulse homepage displays either a green or or
orange triangle indicating the status of the connection to the remote side.
That tile is populated from DistributedSystemMXBean.viewRemoteClusterStatus.
Unfortunately, that method iterators over the gateway senders of all members
and adds them to a the status map by remote DS id. That means that it will only
keep the connected status last sender that was added. If that last sender was a
secondary, it's entirely normal that it might not be connected
{code}
public Map<String, Boolean> viewRemoteClusterStatus() {
if (mapOfGatewaySenders.values().size() > 0) {
Map<String, Boolean> senderMap = new HashMap<String, Boolean>();
Iterator<GatewaySenderMXBean> it =
mapOfGatewaySenders.values().iterator();
while (it.hasNext()) {
GatewaySenderMXBean bean = it.next();
Integer dsId = bean.getRemoteDSId();
if (dsId != null) {
senderMap.put(dsId.toString(), bean.isConnected());
}
...
{code}
This method should probably only look at the primary gateway sender's status.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)