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: [email protected]
For additional commands, e-mail: [email protected]