[ 
https://issues.apache.org/jira/browse/CASSANDRA-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Brown updated CASSANDRA-5678:
-----------------------------------

    Attachment: 5678-v1.diff

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