Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8640

Paxos requires all nodes for CAS

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal

      Description

      In C* 2.1,

      int requiredParticipants = participants + 1  / 2; // See CASSANDRA-833
      

      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.

       int requiredParticipants = pendingEndpoints.size() + 1 + naturalEndpoints.size() / 2; // See CASSANDRA-833
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acoz Anthony Cozzie
                Reporter:
                acoz Anthony Cozzie
                Authors:
                Anthony Cozzie
                Reviewers:
                Aleksey Yeschenko
                Tester:
                Philip Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: