[ 
https://issues.apache.org/jira/browse/CASSANDRA-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13689565#comment-13689565
 ] 

Jason Brown edited comment on CASSANDRA-5678 at 6/20/13 7:53 PM:
-----------------------------------------------------------------

Attached patch modifies EC2MRS.reConnect to add an additional check if the OTCP 
is already using the localIP address. If so, don't bother to reset the 
connection.
                
      was (Author: jasobrown):
    Attached patch modifies EC2MRS.reConnect to add an additional check if the 
OTCP is already using the localIP address. If so, don;t bother to reset the 
connection.
                  
> Avoid over reconnecting in EC2MRS
> ---------------------------------
>
>                 Key: CASSANDRA-5678
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5678
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2.5
>            Reporter: Jason Brown
>            Assignee: Jason Brown
>            Priority: Minor
>              Labels: ec2, ec2multiregionsnitch
>             Fix For: 1.2.6, 2.0 beta 1
>
>         Attachments: 5678-v1.diff
>
>
> EC2MRS can reset the localIP connection to peers aggressively when calls to 
> it's IEndpointStateChangeSubscriber impls get invoked. We shouldn't need to 
> reset (switch to the localIP) if we're already using the localIP in the OTCP 
> (as that's all the reset will do).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to