[ 
https://issues.apache.org/jira/browse/CASSANDRA-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13835432#comment-13835432
 ] 

Lyuben Todorov commented on CASSANDRA-5414:
-------------------------------------------

Seems like the problem is that o.a.c.utils.Hex#hexToBytes doesn't handle 
negative integers. 

> Unspecified initial_token with ByteOrderedPartitioner results in 
> java.lang.NumberFormatException: Non-hex characters
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5414
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5414
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.3
>         Environment: Oracle JDK, java 1.7.0_07, amd64 (x86_64), on a Debian 
> Squeeze, no virtual nodes, nothing fancy.
>            Reporter: Pas
>            Assignee: Lyuben Todorov
>            Priority: Minor
>
> Using one seed, after adding the third node the fresh node chooses an illegal 
> token, so it can't bootstrap itself. So I had to specify initial_token on 
> each host manually. (Which, as far as I know, is recommended anyway for 
> non-random partitioners.)
> java.lang.NumberFormatException: Non-hex characters in 
> ^@^V73797374656d5f61757468
>         at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:60)
>         at 
> org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:167)
>         at 
> org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:230)
>         at 
> org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:45)
>         at 
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:59)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to