incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Error when bringing up nodes during failure testing
Date Tue, 08 Mar 2011 00:51:29 GMT
It's failing because when the node bootstraps it does not know about enough nodes to support
the RF...

> replication factor (3) exceeds number of
> endpoints (2)

I *think* the normal work around is to disable autobootstrap, bring the nodes up then run
"nodetool join" or StorageService.joinRing() via the JConsole.

I not tested this, but reading the code that looks OK. Can you try it out and let me know
how it goes?

Aaron


On 8/03/2011, at 7:09 AM, mcasandra wrote:

> 
> aaron morton wrote:
>> 
>> Can you include the full error stack ? 
>> 
> 
> 
> Please find the complete stack trace. Can't really move forward with it not
> knowing the cause:
> 
> 
> ERROR [main] 2011-03-02 16:28:23,923 AbstractCassandraDaemon.java (line 234)
> Exception encountered during startup.
> java.lang.IllegalStateException: replication factor (3) exceeds number of
> endpoints (2)
>        at
> org.apache.cassandra.locator.SimpleStrategy.calculateNaturalEndpoints(SimpleStrategy.java:60)
>        at
> org.apache.cassandra.locator.AbstractReplicationStrategy.getRangeAddresses(AbstractReplicationStrategy.java:204)
>        at
> org.apache.cassandra.dht.BootStrapper.getRangesWithSources(BootStrapper.java:198)
>        at
> org.apache.cassandra.dht.BootStrapper.bootstrap(BootStrapper.java:83)
>        at
> org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:417)
>        at
> org.apache.cassandra.service.StorageService.initServer(StorageService.java:361)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:161)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:55)
>        at
> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:217)
>        at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:134)
> 
> 
> --
> View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Exception-when-bringing-up-nodes-during-failure-testing-tp6085692p6098332.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.


Mime
View raw message