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

Better error message when streaming with insufficient sources in DC

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.0.10, 3.10
    • Component/s: None
    • Labels:
    • Severity:
      Low

      Description

      This came up in discussion of CASSANDRA-11687. nodetool rebuild was failing in a dtest. Paulo Motta explained:

      before CASSANDRA-11848 the local node could be considered a source, while now sources are restricted only to dc2, so since system_auth uses SimpleStrategy depending on the token arrangement there could or not be sources from dc2. Fix is to either use -Dcassandra.consistent.rangemovement=false or update system_auth to use NetworkTopologyStrategy with 2 dcs..

      This is, at the very least, a UX bug. When rebuild fails, it fails with

      nodetool: Unable to find sufficient sources for streaming range (-3287869951390391138,-1624006824486474209] in keyspace system_auth with RF=1.If you want to ignore this, consider using system property -Dcassandra.consistent.rangemovement=false.
      

      which suggests that a user should give up consistency guarantees when it's not necessary.

        Attachments

        1. 12296.patch
          1 kB
          Kurt Greaves
        2. 12296-3.0.patch
          2 kB
          Kurt Greaves

          Activity

            People

            • Assignee:
              KurtG Kurt Greaves
              Reporter:
              mambocab Jim Witschey
              Authors:
              Kurt Greaves
              Reviewers:
              Jeff Jirsa
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: