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 2013/12/05 15:48:36 UTC
[jira] [Comment Edited] (CASSANDRA-5414) Unspecified initial_token
with ByteOrderedPartitioner results in java.lang.NumberFormatException:
Non-hex characters
[ https://issues.apache.org/jira/browse/CASSANDRA-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13835432#comment-13835432 ]
Lyuben Todorov edited comment on CASSANDRA-5414 at 12/5/13 2:48 PM:
--------------------------------------------------------------------
[~pasthelod] What token did you actually supply? When using ByteOrderedPartitioner, *initial_token* in cassandra.yaml should be set to a valid hex representation.
was (Author: lyubent):
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)