You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sébastien Giroux (JIRA)" <ji...@apache.org> on 2011/03/04 02:16:36 UTC

[jira] Created: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

nodetool info NPE when node isn't fully booted
----------------------------------------------

                 Key: CASSANDRA-2270
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
             Project: Cassandra
          Issue Type: Bug
            Reporter: Sébastien Giroux
            Priority: Minor
             Fix For: 0.7.4


Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.

Exception in thread "main" java.lang.NullPointerException
        at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
        at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
        at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
        at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Jonathan Ellis commented on CASSANDRA-2270:
-------------------------------------------

+1

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Assignee: Brandon Williams
>            Priority: Minor
>             Fix For: 0.7.4
>
>         Attachments: 2270.txt
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Hudson commented on CASSANDRA-2270:
-----------------------------------

Integrated in Cassandra-0.7 #349 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/349/])
    Fix NPE in nodetool when gossip isn't initialized.
Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-2270


> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Assignee: Brandon Williams
>            Priority: Minor
>             Fix For: 0.7.4
>
>         Attachments: 2270.txt
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

Posted by "Sébastien Giroux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002642#comment-13002642 ] 

Sébastien Giroux commented on CASSANDRA-2270:
---------------------------------------------

Early in normal startup, just run "nodetool -h localhost info" when the node its still opening index.

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Priority: Minor
>             Fix For: 0.7.4
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Assigned: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Jonathan Ellis reassigned CASSANDRA-2270:
-----------------------------------------

    Assignee: Brandon Williams

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Assignee: Brandon Williams
>            Priority: Minor
>             Fix For: 0.7.4
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Brandon Williams updated CASSANDRA-2270:
----------------------------------------

    Attachment: 2270.txt

Patch to not check the generation when gossip is not initialized.

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Assignee: Brandon Williams
>            Priority: Minor
>             Fix For: 0.7.4
>
>         Attachments: 2270.txt
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Jonathan Ellis updated CASSANDRA-2270:
--------------------------------------

              Reviewer: jbellis
    Remaining Estimate: 1h
     Original Estimate: 1h

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Assignee: Brandon Williams
>            Priority: Minor
>             Fix For: 0.7.4
>
>         Attachments: 2270.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (CASSANDRA-2270) nodetool info NPE when node isn't fully booted

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

Jonathan Ellis commented on CASSANDRA-2270:
-------------------------------------------

By "not yet ready" do you mean early in normal startup, or started up with explicitly not joining ring?

> nodetool info NPE when node isn't fully booted
> ----------------------------------------------
>
>                 Key: CASSANDRA-2270
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2270
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sébastien Giroux
>            Priority: Minor
>             Fix For: 0.7.4
>
>
> Running "nodetool -h 127.0.0.1 info" when the node is not yet ready throw a NPE.
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cassandra.gms.Gossiper.getCurrentGenerationNumber(Gossiper.java:313)
>         at org.apache.cassandra.service.StorageService.getCurrentGenerationNumber(StorageService.java:1239)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)
>         at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
>         at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira