Skip to content

Conversation

@drbasic
Copy link
Collaborator

@drbasic drbasic commented Oct 3, 2025

continue #2999
Implemented live session switching to a new disk.

@drbasic drbasic added large-tests Launch large tests for PR blockstore Add this label to run only cloud/blockstore build and tests on PR labels Oct 3, 2025
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch 4 times, most recently from 91f5637 to 598fef6 Compare October 7, 2025 12:44
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch 7 times, most recently from 91953ab to 5e9c5b6 Compare October 14, 2025 06:01
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch 4 times, most recently from a3e4e47 to c2e7af8 Compare October 27, 2025 05:07
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch 2 times, most recently from 9f42d2a to f19bbe7 Compare October 29, 2025 10:41
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch from f19bbe7 to 658b347 Compare October 29, 2025 10:50
@komarevtsev-d komarevtsev-d self-requested a review October 30, 2025 12:38
@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch from 8a2038d to 4f5b415 Compare October 30, 2025 13:00
@drbasic drbasic marked this pull request as ready for review October 30, 2025 13:03
@SvartMetal SvartMetal self-requested a review October 30, 2025 13:10
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

Note

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

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
5877 5875 0 0 1 1 0

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
5877 5875 0 0 1 1 0

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
5877 5875 0 0 1 1 0

@drbasic drbasic force-pushed the users/drbasic/mount-secondary-volume-2 branch from 4f5b415 to 080b5b0 Compare October 31, 2025 07:44
@github-actions
Copy link
Contributor

Note

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

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 080b5b0.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
5893 5892 0 0 0 1 0

Comment on lines +638 to +648
if (response.GetVolume().GetPrincipalDiskId()) {
Y_DEBUG_ABORT_UNLESS(
response.GetVolume().GetPrincipalDiskId() ==
NStorage::GetNextDiskId(response.GetVolume().GetDiskId()));

if (auto switcher = SessionSwitcherPtr.lock()) {
switcher->SwitchSession(
response.GetVolume().GetDiskId(),
response.GetVolume().GetPrincipalDiskId());
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Кажется, это можно положить в TSessionManager: обёрткой над клиентом обрабатывать Mount/Read/Write/Zero. Не нужно будет трогать TSession.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

сомневаюсь, эти ошибки монтирования возникают в процессе работы, и их ретраит сама сессия.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Я про такую конструкцию https://pastebin.com/5PKEfqig

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Да, теперь понял идею. Попробую

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blockstore Add this label to run only cloud/blockstore build and tests on PR large-tests Launch large tests for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants