[
https://issues.apache.org/jira/browse/CASSANDRA-5995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959350#comment-13959350
]
Lyuben Todorov edited comment on CASSANDRA-5995 at 4/3/14 10:37 PM:
--------------------------------------------------------------------
We [carry out a
check|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/service/StorageService.java#L3234]
when moving tokens in {{StorageService#relocateTokens}} that removes the token
to be moved if the source and destination addresses are the same. This means
that the token is never sent to other nodes when carrying out {{shuffle
enable}} leading to the empty string error in the coordinator and the
NumberFormattingException in other involved nodes. I'm closing as not a problem
because the only way I could reproduce is by shuffling twice, feel free to
reopen if this can be reproduced on the first shuffle.
was (Author: lyubent):
We carry out a check when moving tokens in {{StorageService#relocateTokens}}
that removes the token to be moved if the source and destination addresses are
the same. This means that the token is never sent to other nodes when carrying
out {{shuffle enable}} leading to the empty string error in the coordinator and
the NumberFormattingException in other involved nodes. I'm closing as not a
problem because the only way I could reproduce is by shuffling twice, feel free
to reopen if this can be reproduced on the first shuffle.
> Cassandra-shuffle causes NumberFormatException
> ----------------------------------------------
>
> Key: CASSANDRA-5995
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5995
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Environment: Amazon EC2
> Reporter: William Montaz
> Assignee: Lyuben Todorov
>
> Using Cassandra-shuffle create, then Cassandra-shuffle en causes a
> NumbertFormatException :
> Extract from output.log
> INFO 15:01:28,935 Enabling scheduled transfers of token ranges
> INFO 15:01:28,957 Initiating transfer of 3059156119944164299 (scheduled at
> Tue Sep 10 15:01:19 UTC 2013)
> WARN 15:01:28,962 Token 3059156119944164299 changing ownership from
> /10.36.194.173 to /10.39.67.29
> WARN 15:01:28,967 Token 3059156119944164299 changing ownership from
> /10.36.194.173 to /10.39.67.29
> INFO 15:01:28,968 RELOCATING: relocating [3059156119944164299] to 10.39.67.29
> INFO 15:01:28,968 RELOCATING: Sleeping 30000 ms before start
> streaming/fetching ranges
> ERROR 15:01:29,331 Exception in thread Thread[GossipStage:8,5,main]
> java.lang.NumberFormatException: For input string: ""
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:453)
> at java.lang.Long.valueOf(Long.java:540)
> at
> org.apache.cassandra.dht.Murmur3Partitioner$1.fromString(Murmur3Partitioner.java:183)
> at
> org.apache.cassandra.service.StorageService.handleStateRelocating(StorageService.java:1490)
> at
> org.apache.cassandra.service.StorageService.onChange(StorageService.java:1180)
> at
> org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:956)
> at org.apache.cassandra.gms.Gossiper.applyNewStates(Gossiper.java:947)
> at
> org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:905)
> at
> org.apache.cassandra.gms.GossipDigestAckVerbHandler.doVerb(GossipDigestAckVerbHandler.java:57)
> at
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:56)
> 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:724)
> ERROR 15:01:30,098 Exception in thread Thread[GossipStage:9,5,main]
> java.lang.NumberFormatException: For input string: ""
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:453)
> at java.lang.Long.valueOf(Long.java:540)
> at
> org.apache.cassandra.dht.Murmur3Partitioner$1.fromString(Murmur3Partitioner.java:183)
> at
> org.apache.cassandra.service.StorageService.handleStateRelocating(StorageService.java:1490)
> at
> org.apache.cassandra.service.StorageService.onChange(StorageService.java:1180)
> at
> org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:956)
> at org.apache.cassandra.gms.Gossiper.applyNewStates(Gossiper.java:947)
> at
> org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:905)
> at
> org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(GossipDigestAck2VerbHandler.java:49)
> at
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:56)
> 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:724)
--
This message was sent by Atlassian JIRA
(v6.2#6252)