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

bug: complete channel wind-down on failed channel in retry loop #416

Open
AndyTWF opened this issue Nov 25, 2024 · 7 comments
Open

bug: complete channel wind-down on failed channel in retry loop #416

AndyTWF opened this issue Nov 25, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@AndyTWF
Copy link
Collaborator

AndyTWF commented Nov 25, 2024

At the moment, if we attempt to do a channel wind-down and it enters the failed state, we don't wind down the other channels, we need to do this to conform to lifecycle atomicity requirements.

┆Issue is synchronized with this Jira Task by Unito

@AndyTWF AndyTWF added the bug Something isn't working label Nov 25, 2024
@sacOO7
Copy link

sacOO7 commented Nov 25, 2024

This is exactly same as #405 right 🤔
More like addressing 2nd case as per #405 (comment)

@AndyTWF
Copy link
Collaborator Author

AndyTWF commented Nov 25, 2024

Yes - just splitting it out so we can track it separately :)

@sacOO7
Copy link

sacOO7 commented Dec 10, 2024

Found one more case where we don't do channel wind down in the first place : (
Mentioned at the comment -> #405 (comment)

@AndyTWF
Copy link
Collaborator Author

AndyTWF commented Dec 10, 2024

Found one more case where we don't do channel wind down in the first place : ( Mentioned at the comment -> #405 (comment)

This instance is ok - all the other channels are already wound down above, the only one that won't be is the one that just went into "failed".

@sacOO7
Copy link

sacOO7 commented Dec 10, 2024

I didn't get what you meant, I don't think we are doing explicit wind down for other channels for mentioned case

@AndyTWF
Copy link
Collaborator Author

AndyTWF commented Dec 10, 2024

I didn't get what you meant, I don't think we are doing explicit wind down for other channels for mentioned case

Line 406 does a wind-down of all other channels, then the promise waits for the one-remaining one to re-attach. So if that remaining channel becomes failed, all then other channels are already sorted.

@sacOO7
Copy link

sacOO7 commented Dec 10, 2024

Ah, got it. Seems we try to attach only when channel wind down for other channels are completed.
Btw, Line 406 does partial wind down as per second case mentioned at comment, so we need to fix that one too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants