cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Angel Martin junquera <mianmarjun.mailingl...@gmail.com>
Subject Error :AssertionError => firstTokenIndex(TokenMetadata.java:845)
Date Tue, 22 Jul 2014 09:21:24 GMT
hi all,

I trying add a node to a cassandra ring with only one seed-node. I have the
seed in EC2 and I have this error  when I start cassandra in the other node



----



ERROR [Thrift:389] 2014-07-22 08:25:39,838 CassandraDaemon.java (line 191)
Exception in thread Thread[Thrift:389,5,main]
java.lang.AssertionError
at
org.apache.cassandra.locator.TokenMetadata.firstTokenIndex(TokenMetadata.java:845)
at
org.apache.cassandra.locator.TokenMetadata.firstToken(TokenMetadata.java:859)
at
org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:106)
at
org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageService.java:2681)
at
org.apache.cassandra.service.StorageProxy.performWrite(StorageProxy.java:376)
at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:191)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:866)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:849)
at
org.apache.cassandra.thrift.CassandraServer.batch_mutate(CassandraServer.java:749)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3690)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3678)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
ERROR [Thrift:390] 2014-07-22 08:25:41,169 CassandraDaemon.java (line 191)
Exception in thread Thread[Thrift:390,5,main]
java.lang.AssertionError
at
org.apache.cassandra.locator.TokenMetadata.firstTokenIndex(TokenMetadata.java:845)
at
org.apache.cassandra.locator.TokenMetadata.firstToken(TokenMetadata.java:859)
at
org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:106)
at
org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageService.java:2681)
at
org.apache.cassandra.service.StorageProxy.performWrite(StorageProxy.java:376)
at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:191)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:866)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:849)
at
org.apache.cassandra.thrift.CassandraServer.batch_mutate(CassandraServer.java:749)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3690)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3678)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
ERROR [Thrift:391] 2014-07-22 08:25:44,578 CassandraDaemon.java (line 191)
Exception in thread Thread[Thrift:391,5,main]
java.lang.AssertionError
at
org.apache.cassandra.locator.TokenMetadata.firstTokenIndex(TokenMetadata.java:845)
at
org.apache.cassandra.locator.TokenMetadata.firstToken(TokenMetadata.java:859)
at
org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:106)
at
org.apache.cassandra.service.StorageService.getNaturalEndpoints(StorageService.java:2681)
at
org.apache.cassandra.service.StorageProxy.performWrite(StorageProxy.java:376)
at org.apache.cassandra.service.StorageProxy.mutate(StorageProxy.java:191)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:866)
at
org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:849)
at
org.apache.cassandra.thrift.CassandraServer.batch_mutate(CassandraServer.java:749)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3690)
at
org.apache.cassandra.thrift.Cassandra$Processor$batch_mutate.getResult(Cassandra.java:3678)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)



------


I do an AMI from the original seed cassandra  instance EC2 and delete all
data an config listen address in cassnadra.yaml   to the new ip of the new
node and run the instance. cassanbra   in the new node and  begin pass data
from the other instance but the original seed get the error and stop the
process to add the instance to the ring



the issue is like this other:

https://issues.apache.org/jira/browse/CASSANDRA-4981

┬┐Any ideas?

I am using   Cassandra 1.2.15  version and endpoint_snitch: Ec2Snitch




thanks ins advance  and regards

Mime
View raw message