-
Notifications
You must be signed in to change notification settings - Fork 32
[NBS] shadow disk release devices after destruction #3622
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
Hi! Thank you for contributing! |
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 0466eb5.
🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 0466eb5.
|
cloud/blockstore/libs/storage/disk_agent/model/device_client.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/volume/volume_actor_checkpoint.cpp
Outdated
Show resolved
Hide resolved
LOG_ERROR( | ||
ctx, | ||
TBlockStoreComponents::VOLUME, | ||
"Error occured when try to release shadow disk %s for clientId: %s." |
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.
Failed to release shadow disk %s for client %s. Error: %s
if (const TCheckpointRequest* checkpointRequest = | ||
CheckpointRequests.FindPtr(CheckpointRequestInProgress)) | ||
CheckpointRequests.FindPtr(CheckpointRequestInProgress); | ||
checkpointRequest != nullptr && | ||
checkpointRequest->CheckpointId == checkpointId) | ||
{ | ||
if (checkpointRequest->ReqType == ECheckpointRequestType::Delete || |
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.
Можно во внутренний if положить:
if (const TCheckpointRequest* checkpointRequest =
CheckpointRequests.FindPtr(CheckpointRequestInProgress))
{
if (checkpointRequest->CheckpointId == checkpointId &&
(checkpointRequest->ReqType == ECheckpointRequestType::Delete ||
checkpointRequest->ReqType == ECheckpointRequestType::DeleteData))
{
return false;
}
}
const auto releaseSessionKind = | ||
static_cast<EReleaseSessionKind>(ev->Cookie); | ||
|
||
if (record.HasError()) { |
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.
HasError(record)
Этот pull request решает проблему: [NBS] Shadow disk does not release its devices after destruction #3097.
Shadow disk не освобождал свои девайсы после удаления чекпоинта,
теперь эта проблема решена.