You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lyuben Todorov (JIRA)" <ji...@apache.org> on 2014/04/04 00:37:15 UTC

[jira] [Resolved] (CASSANDRA-5995) Cassandra-shuffle causes NumberFormatException

     [ https://issues.apache.org/jira/browse/CASSANDRA-5995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lyuben Todorov resolved CASSANDRA-5995.
---------------------------------------

    Resolution: Not a Problem

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)