Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.0.12, 2.1.3
    • Component/s: None
    • Labels:
    • 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: