[
https://issues.apache.org/jira/browse/CASSANDRA-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Wang updated CASSANDRA-4055:
----------------------------------
Environment:
This bug is in Hector code.
If there is exception in addCassandraHost() before adding host to hostPools,
since addCassandraHost does not throw exception, the host will be removed from
downedHostQueue, and the host will be gone forever.
if(downedHostQueue.contains(cassandraHost) &&
verifyConnection(cassandraHost)) {
connectionManager.addCassandraHost(cassandraHost);
downedHostQueue.remove(cassandraHost);
return;
}
was:
If there is exception in addCassandraHost() before adding host to hostPools,
since addCassandraHost does not throw exception, the host will be removed from
downedHostQueue, and the host will be gone forever.
if(downedHostQueue.contains(cassandraHost) &&
verifyConnection(cassandraHost)) {
connectionManager.addCassandraHost(cassandraHost);
downedHostQueue.remove(cassandraHost);
return;
}
> Hector RetryService drop host
> -----------------------------
>
> Key: CASSANDRA-4055
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4055
> Project: Cassandra
> Issue Type: Bug
> Components: Drivers
> Environment: This bug is in Hector code.
> If there is exception in addCassandraHost() before adding host to hostPools,
> since addCassandraHost does not throw exception, the host will be removed
> from downedHostQueue, and the host will be gone forever.
> if(downedHostQueue.contains(cassandraHost) &&
> verifyConnection(cassandraHost)) {
> connectionManager.addCassandraHost(cassandraHost);
> downedHostQueue.remove(cassandraHost);
> return;
> }
> Reporter: Danny Wang
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira