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

Don't use strict endpoint selection for range movements where RF == node count

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.1.0
    • Component/s: Legacy/Coordination
    • Labels:
      None

      Description

      Post CASSANDRA-2434, we should skip strict endpoint selection for ranges where RF == the number of nodes in the cluster otherwise we hit the following assertion in RangeStreamer.getAllRangesWithStrictSourcesFor

      if (oldEndpoints.size() == strat.getReplicationFactor())
      {
          oldEndpoints.removeAll(newEndpoints);
          assert oldEndpoints.size() == 1 : "Expected 1 endpoint but found " + oldEndpoints.size();
      }
      

      I think this is a fairly niche case, plus there's a workaround in the -Dcassandra.consistent.rangemovement=false option.

        Attachments

        1. 7765.txt
          2 kB
          Sam Tunnicliffe

          Activity

            People

            • Assignee:
              samt Sam Tunnicliffe
              Reporter:
              samt Sam Tunnicliffe
              Authors:
              Sam Tunnicliffe
              Reviewers:
              T Jake Luciani
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: