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

Fix missed service notifications on all resource unregistrations #28

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

dr-orlovsky
Copy link
Member

It seems we had the different paths for handling different kind of I/O errors just due to historical reasons. Each of this paths were modified independently in different commits; originally in the case of I/O error we were not disconnecting and just notifying of it the service, letting the service to decide whether a disconnect is needed. Later, we has dropped this notification (probably deciding that the service can't do much in that case) and defaulted to unregistering the resource - but without notifying the service.

This PR brings both cases into a single one, ensuring that (1) we always disconnect on all errors and (2) we always notify the service about the disconnect.

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Jul 4, 2024
Copy link
Contributor

@cloudhead cloudhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, makes sense!

@dr-orlovsky dr-orlovsky merged commit 745b373 into master Jul 6, 2024
18 checks passed
@cloudhead cloudhead deleted the fix/hangup branch July 15, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants