-
Notifications
You must be signed in to change notification settings - Fork 37
Live migration to the new leader volume. #4448
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
base: main
Are you sure you want to change the base?
Conversation
91f5637 to
598fef6
Compare
91953ab to
5e9c5b6
Compare
a3e4e47 to
c2e7af8
Compare
9f42d2a to
f19bbe7
Compare
f19bbe7 to
658b347
Compare
8a2038d to
4f5b415
Compare
|
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.
🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.
🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 4f5b415.
|
4f5b415 to
080b5b0
Compare
| 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()); | ||
| } | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сомневаюсь, эти ошибки монтирования возникают в процессе работы, и их ретраит сама сессия.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я про такую конструкцию https://pastebin.com/5PKEfqig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, теперь понял идею. Попробую
continue #2999
Implemented live session switching to a new disk.