-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(test): easy way to get cluster stuck #741
base: v4
Are you sure you want to change the base?
Conversation
Pushed a possible solution to the problem Problem that I'm trying to solve:
Workaroundstart tracking all .connect() promises via Things to think about
|
@luin any thoughts on that? |
@shaharmor issue described here - #709 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
@luin what do you think of the approach, should we just redo this into event-based handling instead of chaining promises? |
Sorry for the late response! Been pretty busy lately 😢 . This approach works while add a little complexity. I would consider Currently, the problem seems to be that we remove the close handler too early so the "reject()" won't be called if a disconnection happens between the "refresh" event and "ready" event. To solve that, we may move the |
I think rejecting makes sense, and then users can handle what to do - as long as promise is not stuck forever we are already way ahead of this At the same time I think it would be great to add a convenience method, which would do auto-reconnect sort of thing with listening to ready/close/error events and possibly some sort of auto-retry strategy with a finite end |
@luin do you think you'd have time to do something about this? :) |
@AVVS Not have time digging into it currently, but likely can find some time for it within the next two months. I think the issue still exists, doesn't it? |
@luin the issue still exists, indeed :) do you think you might have time to review the code or come up with a better solution than the one I've coded? |
No description provided.