You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "nk11 (JIRA)" <ji...@apache.org> on 2009/04/28 23:59:30 UTC

[jira] Created: (CASSANDRA-114) exception when a node is joining

exception when a node is joining
--------------------------------

                 Key: CASSANDRA-114
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: trunk
            Reporter: nk11
             Fix For: trunk


When a new node is joining, StorageService is notified and the log shows this:

java.lang.NumberFormatException: For input string: "T"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.math.BigInteger.<init>(Unknown Source)
        at java.math.BigInteger.<init>(Unknown Source)
        at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
        at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
        at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
        at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)

In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Resolved: (CASSANDRA-114) exception when a node is joining

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

nk11 resolved CASSANDRA-114.
----------------------------

    Resolution: Fixed

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 114-v2.patch, 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Commented: (CASSANDRA-114) exception when a node is joining

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

nk11 commented on CASSANDRA-114:
--------------------------------

It doesn't work yet.
In the StorageService.setup() there still is a Token.toString:
new ApplicationState(storageMetadata_.getStorageId().toString())


> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Updated: (CASSANDRA-114) exception when a node is joining

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

Jonathan Ellis updated CASSANDRA-114:
-------------------------------------

    Attachment: 115.patch

the attached patch should fix the problem.  can you test?

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Commented: (CASSANDRA-114) exception when a node is joining

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

nk11 commented on CASSANDRA-114:
--------------------------------

Perhaps in the StorageService.updateToken() the added ApplicationState should not be created using Token's toString()

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>             Fix For: trunk
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Updated: (CASSANDRA-114) exception when a node is joining

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

Jonathan Ellis updated CASSANDRA-114:
-------------------------------------

    Attachment: 114-v2.patch

you're right.  updated patch attached.

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 114-v2.patch, 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Commented: (CASSANDRA-114) exception when a node is joining

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

nk11 commented on CASSANDRA-114:
--------------------------------

the last one did it 

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 114-v2.patch, 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Commented: (CASSANDRA-114) exception when a node is joining

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704681#action_12704681 ] 

Jonathan Ellis commented on CASSANDRA-114:
------------------------------------------

committed patch.

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 114-v2.patch, 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Updated: (CASSANDRA-114) exception when a node is joining

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

nk11 updated CASSANDRA-114:
---------------------------

    Fix Version/s:     (was: trunk)
                   0.4

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>             Fix For: 0.4
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Assigned: (CASSANDRA-114) exception when a node is joining

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

Jonathan Ellis reassigned CASSANDRA-114:
----------------------------------------

    Assignee: Jonathan Ellis

> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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


[jira] Commented: (CASSANDRA-114) exception when a node is joining

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

Hudson commented on CASSANDRA-114:
----------------------------------

Integrated in Cassandra #55 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/55/])
    add string de/serialize code to TokenFactory for ApplicationState's benefit.
patch by jbellis; tested by nk11 and MarkR42 for 


> exception when a node is joining
> --------------------------------
>
>                 Key: CASSANDRA-114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-114
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: nk11
>            Assignee: Jonathan Ellis
>             Fix For: 0.4
>
>         Attachments: 114-v2.patch, 115.patch
>
>
> When a new node is joining, StorageService is notified and the log shows this:
> java.lang.NumberFormatException: For input string: "T"
>         at java.lang.NumberFormatException.forInputString(Unknown Source)
>         at java.lang.Integer.parseInt(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at java.math.BigInteger.<init>(Unknown Source)
>         at org.apache.cassandra.dht.RandomPartitioner$3.fromString(RandomPartitioner.java:97)
>         at org.apache.cassandra.service.StorageService.onChange(StorageService.java:646)
>         at org.apache.cassandra.gms.Gossiper.doNotifications(Gossiper.java:770)
>         at org.apache.cassandra.gms.Gossiper.handleNewJoin(Gossiper.java:644)
> In my case, the EndPointState had a nodeIdState who's state_ was "Token(165385238122940489124770581854348071118)" and produced the exception.

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