You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Erick Tryzelaar (JIRA)" <ji...@apache.org> on 2010/04/20 00:35:49 UTC

[jira] Created: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Exception starting up cluster with ByteOrderedPartitioner without schema set
----------------------------------------------------------------------------

                 Key: CASSANDRA-1006
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.7
            Reporter: Erick Tryzelaar


Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:

java.lang.NumberFormatException: For input string: "To"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:481)
	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
	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:636)
ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]

It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Erick Tryzelaar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858712#action_12858712 ] 

Erick Tryzelaar commented on CASSANDRA-1006:
--------------------------------------------

I hacked up my code a bit, and it turns out the line ByteOrderedPartitioner is trying to parse is the string "Token(bytes[4695b973940d36dce35be8d73832f848])", which obviously is not a hex string.

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stu Hood updated CASSANDRA-1006:
--------------------------------

    Attachment: 0001-Serialize-Tokens-using-TokenFactory.patch

BootStrapper was serializing tokens using toString rather than TokenFactory.toString.

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>            Assignee: Stu Hood
>             Fix For: 0.7
>
>         Attachments: 0001-Serialize-Tokens-using-TokenFactory.patch
>
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Erick Tryzelaar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858730#action_12858730 ] 

Erick Tryzelaar commented on CASSANDRA-1006:
--------------------------------------------

Fyi, turns out this is happening whether or not I've set up the storage configuration.

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>            Assignee: Stu Hood
>             Fix For: 0.7
>
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-1006:
--------------------------------------

    Fix Version/s: 0.7

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>            Assignee: Stu Hood
>             Fix For: 0.7
>
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859090#action_12859090 ] 

Gary Dusbabek commented on CASSANDRA-1006:
------------------------------------------

+1

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>            Assignee: Stu Hood
>             Fix For: 0.7
>
>         Attachments: 0001-Serialize-Tokens-using-TokenFactory.patch
>
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CASSANDRA-1006) Exception starting up cluster with ByteOrderedPartitioner without schema set

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reassigned CASSANDRA-1006:
-----------------------------------------

    Assignee: Stu Hood

> Exception starting up cluster with ByteOrderedPartitioner without schema set
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1006
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1006
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7
>            Reporter: Erick Tryzelaar
>            Assignee: Stu Hood
>
> Testing out the new ByteOrderedPartitioner, I ran into this exception on the tip:
> java.lang.NumberFormatException: For input string: "To"
> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> 	at java.lang.Integer.parseInt(Integer.java:481)
> 	at org.apache.cassandra.utils.FBUtilities.hexToBytes(FBUtilities.java:361)
> 	at org.apache.cassandra.dht.AbstractByteOrderedPartitioner$1.fromString(AbstractByteOrderedPartitioner.java:133)
> 	at org.apache.cassandra.dht.BootStrapper$BootstrapTokenCallback.response(BootStrapper.java:246)
> 	at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:36)
> 	at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:41)
> 	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:636)
> ERROR 16:31:21,737 Fatal exception in thread Thread[RESPONSE-STAGE:1,5,main]
> It works fine with the RandomPartitioner, however.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.