You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Kirk Lund (Jira)" <ji...@apache.org> on 2021/04/08 17:14:00 UTC

[jira] [Commented] (GEODE-9101) Attribute VisibleNodes in MemberMXBean is incorrect

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

Kirk Lund commented on GEODE-9101:
----------------------------------

The javadocs on MemberMXBean are misleading. They state:
{noformat}
  /**
   * The current number of nodes in this distributed system visible to this member.
   */
  int getVisibleNodes();
{noformat}
However, the value of {{getVisibleNodes()}} is {{nodes}} from {{DistributionStats}} which reflects the current number of nodes in the distributed system (including this member):
{noformat}
    final String nodesDesc = "The current number of nodes in this distributed system.";
{noformat}
Users may be depending on {{getVisibleNodes()}} matching the same value as the {{nodes}} statistic, so the safest change is to introduce a new attribute that reflects the number of OTHER nodes.

If you really want to change {{getVisibleNodes()}} then you should propose this on the Geode dev mailing list.

> Attribute VisibleNodes in MemberMXBean is incorrect
> ---------------------------------------------------
>
>                 Key: GEODE-9101
>                 URL: https://issues.apache.org/jira/browse/GEODE-9101
>             Project: Geode
>          Issue Type: Bug
>          Components: statistics
>            Reporter: Mario Kevo
>            Assignee: Mario Kevo
>            Priority: Major
>              Labels: pull-request-available
>
> In documentation states:
> _The current number of nodes in this distributed system visible to this member._
> But checking the value of the attribute we have a difference between locator and server.
> For example, we have the following system:
> {code:java}
>  
> gfsh>list members
> Member Count : 4
> Name | Id
> -------- | -----------------------------------------------------------------
> locator1 | 192.168.0.145(locator1:26377:locator)<ec><v0>:41000 [Coordinator]
> locator2 | 192.168.0.145(locator2:26509:locator)<ec><v1>:41001
> server1 | 192.168.0.145(server1:26648)<v2>:41002
> server2 | 192.168.0.145(server2:26768)<v3>:41003
>  
> {code}
>  
> For locators visibleNodes = 2, but for servers visibleNodes = 3.
> Locators see only servers as visible nodes(In this case it sees *server1* and *server2*).
> Servers see first locator and all servers, including itself(In this case server1 sees *locator1*, *server1* and *server2*).
>  
>  



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