You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Laurent Bigonville (JIRA)" <ji...@apache.org> on 2019/01/18 11:20:00 UTC

[jira] [Updated] (ARTEMIS-2231) quorum-size not properly calculated?

     [ https://issues.apache.org/jira/browse/ARTEMIS-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Laurent Bigonville updated ARTEMIS-2231:
----------------------------------------
    Description: 
Hello,

Looking at the code where quorum-size is calculated I'm wondering if there is not an issue there.

In the isLiveDown() method for the share nothing setup, I see:

      int size = quorumSize == -1 ? quorumManager.getMaxClusterSize() : quorumSize;

maxClusterSize is calculated like the following in nodeUP():

      maxClusterSize = newClusterSize > maxClusterSize ? newClusterSize : maxClusterSize;

 

Wouldn't that mean that for a setup with 3 masters, the quorum will be set by default to 3 instead of 2 as (I think) is needed?

  was:
Hello,

Looking at the code where quorum-size is calculated I'm wondering if there is not an issue there.

In the isLiveDown() method for the share nothing setup, I see:

      int size = quorumSize == -1 ? quorumManager.getMaxClusterSize() : quorumSize;

maxClusterSize is calculated like the following in nodeUP():

      maxClusterSize = newClusterSize > maxClusterSize ? newClusterSize : maxClusterSize;

 

Wouldn't that mean that for a setup with 3 master, the quorum will be set by default to 3 instead of 2 as (I think) is needed?


> quorum-size not properly calculated?
> ------------------------------------
>
>                 Key: ARTEMIS-2231
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2231
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Laurent Bigonville
>            Priority: Major
>
> Hello,
> Looking at the code where quorum-size is calculated I'm wondering if there is not an issue there.
> In the isLiveDown() method for the share nothing setup, I see:
>       int size = quorumSize == -1 ? quorumManager.getMaxClusterSize() : quorumSize;
> maxClusterSize is calculated like the following in nodeUP():
>       maxClusterSize = newClusterSize > maxClusterSize ? newClusterSize : maxClusterSize;
>  
> Wouldn't that mean that for a setup with 3 masters, the quorum will be set by default to 3 instead of 2 as (I think) is needed?



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