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 (Created) (JIRA)" <ji...@apache.org> on 2012/03/15 22:20:38 UTC

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

Hector RetryService drop host
-----------------------------

                 Key: CASSANDRA-4055
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4055
             Project: Cassandra
          Issue Type: Bug
          Components: Drivers
         Environment: 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

        

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

Posted by "Danny Wang (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-4055.
---------------------------------------

    Resolution: Fixed

The Hector client is maintained at https://github.com/rantav/hector.
                
> 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