Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually reconnecting (by closing dataviewer and relaunching it) seems to work better than the automatic reconnection. #9

Open
mikelovskij opened this issue Oct 25, 2015 · 0 comments

Comments

@mikelovskij
Copy link
Contributor

If during the call of the next() method of the nds iterator the exception "Requested data were not found" ir raised, dataviewer launches the self.reconnect() method, which deletes both the iterator and the connection objects, creates new ones and retries calling the next() method.
While this usually works, it seems that (for reasons don't understand at all), some time it happens that the automatic reconnection attempts keeps failing, while if instead by closing and relaunching dataviewer, the newly created iterator seem to work immediately.
I'm not 100% sure of this bug, since it could be that this happened just by chance and that the "manual" reconnection was just the one more attempt that was necessary for the nds2 connection to return working, but I'm starting thinking that it happened to me a bit too many times for it to be casual.

How to reproduce: use dataviewer, if after a while the nds2 connection fails and the automatic reconnection attempts keep failing, try to close and reopen dataviewer manually.

The issue is that the automatic reconnection attempt should not be different from a manual one, so I really can't understand why this happens. My only clue is that maybe something that helps in making the connection work happens when re-importing the nds modules.

Anyway just posting this to see if this happens to other people too in a reproducible way.

@mikelovskij mikelovskij changed the title Manually reconnecting (by closing dataviewer and relaunching it seems to work better than the automatic reconnection. Manually reconnecting (by closing dataviewer and relaunching it) seems to work better than the automatic reconnection. Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant