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

reconfigure nbd device on disconnect from the kernel #2791 #2792

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tpashkin
Copy link
Collaborator

@tpashkin tpashkin commented Jan 3, 2025

For now implementing only for endpoint proxy, because it's our primary use case

@tpashkin tpashkin linked an issue Jan 3, 2025 that may be closed by this pull request
@tpashkin tpashkin changed the title reconfigure nbd device on disconnect from the other side #2791 reconfigure nbd device on disconnect from the kernel #2791 Jan 3, 2025
@@ -108,9 +108,9 @@ TFuture<NProto::TError> TNetlinkDevice::Start()
ConnectSocket();
Connect();

} catch (const TServiceError& e) {
} catch (const std::exception& e) {
Copy link
Collaborator Author

@tpashkin tpashkin Jan 3, 2025

Choose a reason for hiding this comment

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

The reasoning behind handling only TServiceError was that we wanted the caller to deal with ConnectSocket exceptions, but in reality we forgot about it and just crashed the proxy

@tpashkin tpashkin force-pushed the users/tpashkin/nbd-reconnect branch from 16f9f52 to 78e08eb Compare January 3, 2025 10:17
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Note

This is an automated comment that will be appended during run.

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 07f9e23.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
6317 6317 0 0 0 0

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

Successfully merging this pull request may close these issues.

[NBS] reconfigure nbd socket on kernel disconnect
2 participants