You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Hao Zhong (Jira)" <ji...@apache.org> on 2023/05/15 02:27:00 UTC
[jira] [Created] (CASSANDRA-18527) StorageServiceMBean throws inconsistent exceptions
Hao Zhong created CASSANDRA-18527:
-------------------------------------
Summary: StorageServiceMBean throws inconsistent exceptions
Key: CASSANDRA-18527
URL: https://issues.apache.org/jira/browse/CASSANDRA-18527
Project: Cassandra
Issue Type: Bug
Reporter: Hao Zhong
StorageServiceMBean has the following two methods:
{code:java}
public List<String> getTokens()
{
return ssProxy.getTokens();
}
public List<String> getTokens(String endpoint)
{
try
{
return ssProxy.getTokens(endpoint);
}
catch (UnknownHostException e)
{
throw new RuntimeException(e);
}
}
{code}
The getTokens() method throws UnknownHostException, but the getTokens(String endpoint) throws RuntimeException. This is strange when the error is identical and the two methods have the same name.
--
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