You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/03/05 01:57:00 UTC

[jira] [Commented] (GEODE-6475) Add mechanism for determining if a system is completely disconnected to InternalDistributedSystem

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

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

Commit 004db486bccd1343a9dfb59d20a8f663510881ad in geode's branch refs/heads/feature/GEODE-6481 from Ryan McMahon
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=004db48 ]

GEODE-6475: Adding isDisconnected() method to InternalDistributedSystem


> Add mechanism for determining if a system is completely disconnected to InternalDistributedSystem
> -------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-6475
>                 URL: https://issues.apache.org/jira/browse/GEODE-6475
>             Project: Geode
>          Issue Type: Improvement
>          Components: general, membership
>            Reporter: Ryan McMahon
>            Priority: Major
>
> Currently the only mechanism to query the InternalDistributedSystem to determine if it is connected or not is the isConnected() method.  However, that method returns false if a _disconnection is progress_.  There is another method, isDisconnecting(), which queries if a disconnection is in progress.  However, there is no way to determine in a thread-safe way if the system is completely disconnected (no disconnection in progress and not currently connected).  One way to solve this is to add a isDisconnected() method which will only return true if the system is not connected and there is no disconnection in progress.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)