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

Node fails to rejoin cluster on EC2 if private IP is changed

    XMLWordPrintableJSON

Details

    • Low

    Description

      Nodes in Amazon AWS EC2 Classic (not a VPC) may be assigned a new private IP if the node is stopped and then started again. In this case we have puppet update the configured listen_address to the new private IP. However, once the cassandra service starts, it is unable to communicate with the existing nodes(single region) and vice versa.

      'nodetool status' shows that each node believes that it is 'UN' and the other node is 'DN'.

      'nodetool gossipinfo' on the node that remained running shows the old private IP listed as the 'INTERNAL_IP' of the node that was stopped and restarted.

      The situation is resolved by restarting the cassandra service on the node that remained running. Once it has restarted, the INTERNAL_IP is correctly updated to the new private IP. 'nodetool status' shows that both nodes are up and the cluster appears to function normally.

      This appears to me to be the root cause of https://issues.apache.org/jira/browse/CASSANDRA-7292. Possibly https://issues.apache.org/jira/browse/CASSANDRA-8072 as well, but I am not convinced they are actually duplicates.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jw.clark Joseph Clark
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: