Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Zoodiscovery reconnect issue

Hi Yuriy,

Thanks for the report.  I suggest you immediately create a bug

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=ECF

with the ecf.discovery Component, and put [Zookeeper] <your title> in the Summary.    Then please post the new bug url here in reply to this message.

It would be good to do this as soon as possible, as ECF is coming up on its Mars deadlines, and if this bug can be addressed quickly that would likely be best for everyone.

Committer Wim Jongman is probably going to have to look at this and join the bug, as he is the most technically familiar with the Zookeeper discovery provider.

Thanks,

Scott

On 4/14/2015 4:11 PM, Yuriy Lopotun wrote:

Hi guys,


In our client-server OSGI application we are using ECF Zoodiscovery provider (v.1.0.100) for remote services discovery. When testing the application resiliency, we noticed that when unplugging /plugging back the network cable, the client in some cases doesn't get back the remote OSGI services from the server.


I started debugging this use case and found out that in case of session timeout both Zookeeper itself and Zoodiscovery try reconnecting simultaneously. This results in a connect-disconnect-connect operation instead of just connect and an inconsistent client state – connection finally gets re-established, but the client doesn’t ask the server for the remote services.


I think that Zoodiscovery should not trigger disconnect/connect in cases when Zookeeper does it on its own. But in this case we would need to somehow differentiate the disconnect events, which doesn't seem to be possible at the moment, since it comes from Zookeeper.


So, if anyone encountered this or similar issue or has any suggestions for a possible solution or work-around – I’d appreciate your comments. I can provide references to the blocks of code if need be.


Yuriy



_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ecf-dev


Back to the top