[ https://issues.apache.org/jira/browse/CASSANDRA-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281114#comment-14281114 ]
Jeremiah Jordan commented on CASSANDRA-8640: -------------------------------------------- Yeah the only issue was pending > 1 > Paxos requires all nodes for CAS > -------------------------------- > > Key: CASSANDRA-8640 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8640 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Anthony Cozzie > Assignee: Anthony Cozzie > Fix For: 2.0.12, 2.1.3 > > Attachments: 0001-Fix-parentheses-bug-in-Paxos.patch, > 0001-Fix-quorum-required-nodes-calculation-for-Paxos.patch > > > In C* 2.1, > {code} > int requiredParticipants = participants + 1 / 2; // See CASSANDRA-833 > {code} > Will always return participants because of operator precedence. I am not > sure just adding parentheses will fix the problem, though, as the original > code differentiated between pending and natural endpoints. > {code} > int requiredParticipants = pendingEndpoints.size() + 1 + > naturalEndpoints.size() / 2; // See CASSANDRA-833 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)