You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "n.v.harikrishna (Jira)" <ji...@apache.org> on 2024/01/09 17:28:00 UTC
[jira] [Commented] (CASSANDRA-19255) StorageService.getRangeToEndpointMap() MBean operation is running into NPE for LocalStrategy keysapces
[ https://issues.apache.org/jira/browse/CASSANDRA-19255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17804818#comment-17804818 ]
n.v.harikrishna commented on CASSANDRA-19255:
---------------------------------------------
Sample output using jmxterm
For trunk:
{quote}$>bean org.apache.cassandra.db:type=StorageService
#bean is set to org.apache.cassandra.db:type=StorageService
$>run getRangeToEndpointMap system
#calling operation getRangeToEndpointMap of mbean org.apache.cassandra.db:type=StorageService with params [system]
#RuntimeMBeanException: java.lang.NullPointerException
$>run getRangeToEndpointWithPortMap system
#calling operation getRangeToEndpointWithPortMap of mbean org.apache.cassandra.db:type=StorageService with params [system]
#RuntimeMBeanException: java.lang.NullPointerException
{quote}
For 4.1 (using ccm):
{quote}$>run getRangeToEndpointMap system
#calling operation getRangeToEndpointMap of mbean org.apache.cassandra.db:type=StorageService with params [system]
#operation returns:
{
( 3074457345618258602, -9223372036854775808 ) = ( 127.0.0.1 );
( -3074457345618258603, 3074457345618258602 ) = ( 127.0.0.1 );
( -9223372036854775808, -3074457345618258603 ) = ( 127.0.0.1 );
}
$>run getRangeToEndpointWithPortMap system
#calling operation getRangeToEndpointWithPortMap of mbean org.apache.cassandra.db:type=StorageService with params [system]
#operation returns:
{
( 3074457345618258602, -9223372036854775808 ) = ( 127.0.0.1:7000 );
( -3074457345618258603, 3074457345618258602 ) = ( 127.0.0.1:7000 );
( -9223372036854775808, -3074457345618258603 ) = ( 127.0.0.1:7000 );
}{quote}
> StorageService.getRangeToEndpointMap() MBean operation is running into NPE for LocalStrategy keysapces
> ------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-19255
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19255
> Project: Cassandra
> Issue Type: Bug
> Reporter: n.v.harikrishna
> Assignee: n.v.harikrishna
> Priority: Normal
>
> When the StorageService's MBean operation getRangeToEndpointMap is called for LocalStrategy keyspaces, then it is running into NPE. It is working in earlier major version, but failing in trunk. It can be reproduced in local using JConsole or using a tool like `jmxterm` (unfortunately these tools are not giving full stacktrace). Observed the same behavior with getRangeToEndpointWithPortMap operation too.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org