You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Danny Wang (Updated) (JIRA)" <ji...@apache.org> on 2012/03/15 22:20:39 UTC

[jira] [Updated] (CASSANDRA-4055) Hector RetryService drop host

     [ 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