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

Validate dc information on startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.13, 2.2.5, 3.0.1, 3.1
    • None
    • None
    • Cassandra 2.1.5

    Description

      When using GossipingPropertyFileSnitch it is possible to change the data center and rack of a live node by changing the cassandra-rackdc.properties file. Should this really be possible? In the documentation at http://docs.datastax.com/en/cassandra/2.1/cassandra/initialize/initializeMultipleDS.html it's stated that you should Choose the name carefully; renaming a data center is not possible, but with this functionality it doesn't seem impossible(maybe a bit hard with changing replication etc.).

      This functionality was introduced by CASSANDRA-5897 so I'm guessing there is some use case for this?

      Personally I would want the DC/rack settings to be as restricted as the cluster name, otherwise if a node could just join another data center without removing it's local information couldn't it mess up the token ranges? And suddenly the old data center/rack would loose 1 replica of all the data that the node contains.

      Attachments

        1. cassandra-2.1-9474.patch
          9 kB
          Marcus Olsson
        2. cassandra-2.1-dc_rack_healthcheck.patch
          3 kB
          Marcus Olsson
        3. CASSANDRA-9474-2.2.patch
          5 kB
          Marcus Olsson
        4. CASSANDRA-9474-2.2-1.patch
          7 kB
          Marcus Olsson
        5. CASSANDRA-9474-3.0-1.patch
          7 kB
          Marcus Olsson
        6. CASSANDRA-9474-dtest.patch
          2 kB
          Marcus Olsson
        7. CASSANDRA-9474-trunk.patch
          5 kB
          Marcus Olsson

        Issue Links

          Activity

            People

              molsson Marcus Olsson
              molsson Marcus Olsson
              Marcus Olsson
              Paulo Motta
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: