Failed to create lease Leader/master/5.1.SearchGraph

400 Views Asked by At

I am getting following error in my datastax debug log. We had not created any new datacenter, only change we had made is snitch change to GossipingPropertyFileSnitch. We are using the same old name in /etc/dse/cassandra/cassandra-rackdc.properties.

Failed to create lease Leader/master/5.1.SearchGraph.  Possible causes
include network/C* issues, the lease being disabled, insufficient 
replication (you created a new DC and didn't ALTER KEYSPACE dse_leases)   
and the duration (30000) being different (you have to disable/delete
/recreate the lease to change the duration). java.io.IOException: No live 
replicas for lease Leader/master/5.1.SearchGraph in table   
dse_leases.leases (keyspace dse_leases has no replicas in datacenter 
SearchGraph!  You need to adjust the replication factor.
1

There are 1 best solutions below

2
On

sounds like you have some stale or non matching data in your system tables from changing the DC name. The easiest thing to do to remedy this, if this is a dev environment or a prod environment with no data, is to wipe your Cassandra data directories and restart your nodes.