[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2018-05-11 Thread Jeremy Hanna (JIRA)

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

Jeremy Hanna updated CASSANDRA-8640:

Labels: LWT qa-resolved  (was: qa-resolved)

> Paxos requires all nodes for CAS
> 
>
> Key: CASSANDRA-8640
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8640
> Project: Cassandra
>  Issue Type: Bug
>Reporter: Anthony Cozzie
>Assignee: Anthony Cozzie
>Priority: Major
>  Labels: LWT, qa-resolved
> 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
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-26 Thread Philip Thompson (JIRA)

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

Philip Thompson updated CASSANDRA-8640:
---
Labels: qa-resolved  (was: )

 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
  Labels: qa-resolved
 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-22 Thread Philip Thompson (JIRA)

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

Philip Thompson updated CASSANDRA-8640:
---
Tester: Philip Thompson

 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Anthony Cozzie (JIRA)

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

Anthony Cozzie updated CASSANDRA-8640:
--
Description: 
{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}

  was:
{code}
int requiredParticipants = participants + 1  / 2; // See CASSANDRA-833
{code}

Fails owing to the order of operations.  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}


 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: Sylvain Lebresne

 {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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Anthony Cozzie (JIRA)

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

Anthony Cozzie updated CASSANDRA-8640:
--
Description: 
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}

  was:
{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}


 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: Sylvain Lebresne

 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko updated CASSANDRA-8640:
-
Fix Version/s: 2.0.12

 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: Sylvain Lebresne
 Fix For: 2.0.12


 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko updated CASSANDRA-8640:
-
Assignee: Anthony Cozzie  (was: Sylvain Lebresne)

 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


 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko updated CASSANDRA-8640:
-
Reviewer: Aleksey Yeschenko

 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

 Attachments: 0001-Fix-parentheses-bug-in-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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Anthony Cozzie (JIRA)

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

Anthony Cozzie updated CASSANDRA-8640:
--
Attachment: 0001-Fix-parentheses-bug-in-Paxos.patch

 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

 Attachments: 0001-Fix-parentheses-bug-in-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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko updated CASSANDRA-8640:
-
Fix Version/s: 2.1.3

 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


 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)


[jira] [Updated] (CASSANDRA-8640) Paxos requires all nodes for CAS

2015-01-16 Thread Anthony Cozzie (JIRA)

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

Anthony Cozzie updated CASSANDRA-8640:
--
Attachment: 0001-Fix-quorum-required-nodes-calculation-for-Paxos.patch

 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)