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

Nodes can't rejoin after stopping, when using GossipingPropertyFileSnitch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.1
    • None
    • None
    • 3 ec2 instances (CentOS 6.3; java 1.7.0_05; Cassandra 1.2)

    • Normal

    Description

      I can establish a 1.2 ring with GossipingPropertyFileSnitch, but after killing a node and restarting it, the node cannot rejoin.

      [Node 1] ./bin/cassandra -f
      [Node 2] ./bin/cassandra -f
      [Node 3] ./bin/cassandra -f

      [Node 1] ./bin/nodetool ring
      ... ok ...

      [Node 1] ^C
      ... node shutdown ...

      [Node 1] ./bin/cassandra -f
      ... Exception! ...

      ERROR 05:45:39,305 Exception encountered during startup
      java.lang.RuntimeException: Could not retrieve DC for /10.114.18.51 from gossip and PFS compatibility is disabled
      at org.apache.cassandra.locator.GossipingPropertyFileSnitch.getDatacenter(GossipingPropertyFileSnitch.java:109)
      at org.apache.cassandra.locator.DynamicEndpointSnitch.getDatacenter(DynamicEndpointSnitch.java:127)
      at org.apache.cassandra.locator.TokenMetadata$Topology.addEndpoint(TokenMetadata.java:1040)
      at org.apache.cassandra.locator.TokenMetadata.updateNormalTokens(TokenMetadata.java:185)
      at org.apache.cassandra.locator.TokenMetadata.updateNormalTokens(TokenMetadata.java:157)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:441)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:397)
      at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:309)
      at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
      at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
      java.lang.RuntimeException: Could not retrieve DC for /10.114.18.51 from gossip and PFS compatibility is disabled
      at org.apache.cassandra.locator.GossipingPropertyFileSnitch.getDatacenter(GossipingPropertyFileSnitch.java:109)
      at org.apache.cassandra.locator.DynamicEndpointSnitch.getDatacenter(DynamicEndpointSnitch.java:127)
      at org.apache.cassandra.locator.TokenMetadata$Topology.addEndpoint(TokenMetadata.java:1040)
      at org.apache.cassandra.locator.TokenMetadata.updateNormalTokens(TokenMetadata.java:185)
      at org.apache.cassandra.locator.TokenMetadata.updateNormalTokens(TokenMetadata.java:157)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:441)
      at org.apache.cassandra.service.StorageService.initServer(StorageService.java:397)
      at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:309)
      at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
      at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)

      Full environment + exceptions + stacktraces: https://gist.github.com/1e74ff02c2d4f622ce8f

      Attachments

        1. 5133-2.txt
          2 kB
          Brandon Williams
        2. 5133.txt
          4 kB
          Brandon Williams

        Activity

          People

            brandon.williams Brandon Williams
            exabytes18 Matt Jurik
            Brandon Williams
            Vijay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: