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

ASF subversion and git services commented on GEODE-2186:
--------------------------------------------------------

Commit 09184881aec9250fdf2e96f4fced4dedaac0bda7 in geode's branch 
refs/heads/develop from [~upthewaterspout]
[ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=0918488 ]

GEODE-2186: Changing the gateway status to only looking running status

Gateway senders may or may not be connected, depending on what is going
on with the underlying queue. If a sender is a secondary, it may be
disconnected because it doesn't need to send anything. Even primaries
may be disconnected for periods of time if the connection is lost when
there is nothing in the queue.


> 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
>            Assignee: 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)

Reply via email to