geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Smith (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-2179) GatewaySenderMBeans isConnected flag does not notice if a connection is destroyed
Date Tue, 06 Dec 2016 19:17:58 GMT

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

Dan Smith commented on GEODE-2179:
----------------------------------

Hi Amey,

My mistake, I didn't assign this one to myself. But I actually have a review request out for
a fix for this issue - let me know what you think:

https://reviews.apache.org/r/54330/

> GatewaySenderMBeans isConnected flag does not notice if a connection is destroyed
> ---------------------------------------------------------------------------------
>
>                 Key: GEODE-2179
>                 URL: https://issues.apache.org/jira/browse/GEODE-2179
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>            Reporter: Dan Smith
>            Assignee: Amey Barve
>
> The GatewaySenderMBean has a method called isConnected which ultimately calls this code
in GatewaySenderEventRemoteDispatcher
> {code}
> @Override
> public boolean isConnectedToRemote() {
>   return connection != null;
> }
> {code}
> However, this doesn't take into account that the connection may be destroyed, but not
null. Therefore the mbean can incorrectly indicate that the sender is connected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message