Skip to content

[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

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

Conversation

Georg-0001
Copy link
Contributor

Этот pull request решает проблему: [NBS] Shadow disk does not release its devices after destruction #3097.

Shadow disk не освобождал свои девайсы после удаления чекпоинта,
теперь эта проблема решена.

Copy link
Contributor

github-actions bot commented Jun 4, 2025

Hi! Thank you for contributing!
The tests on this PR will run after a maintainer adds an ok-to-test label to this PR manually. Thank you for your patience!

@komarevtsev-d komarevtsev-d added blockstore Add this label to run only cloud/blockstore build and tests on PR large-tests Launch large tests for PR ok-to-test Label to approve test launch for external members labels Jun 4, 2025
@github-actions github-actions bot removed the ok-to-test Label to approve test launch for external members label Jun 4, 2025
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Note

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

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 552dec1.

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

Copy link
Contributor

github-actions bot commented Jun 5, 2025

Note

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

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 0466eb5.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
5366 5365 0 1 0 0

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 0466eb5.

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

@Georg-0001 Georg-0001 requested a review from komarevtsev-d June 9, 2025 08:42
Copy link
Contributor

github-actions bot commented Jun 9, 2025

Note

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

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 4a04965.

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

Copy link
Contributor

Note

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

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 9a0ad2a.

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

Copy link
Contributor

Note

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

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

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

@Georg-0001 Georg-0001 requested a review from komarevtsev-d June 17, 2025 08:51
Copy link
Contributor

Note

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

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

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

@Georg-0001 Georg-0001 requested a review from komarevtsev-d June 19, 2025 06:37
LOG_ERROR(
ctx,
TBlockStoreComponents::VOLUME,
"Error occured when try to release shadow disk %s for clientId: %s."
Copy link
Collaborator

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

komarevtsev-d
komarevtsev-d previously approved these changes Jun 19, 2025
@komarevtsev-d komarevtsev-d requested a review from sharpeye June 19, 2025 07:36
Copy link
Contributor

Note

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

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

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

Comment on lines 211 to 216
if (const TCheckpointRequest* checkpointRequest =
CheckpointRequests.FindPtr(CheckpointRequestInProgress))
CheckpointRequests.FindPtr(CheckpointRequestInProgress);
checkpointRequest != nullptr &&
checkpointRequest->CheckpointId == checkpointId)
{
if (checkpointRequest->ReqType == ECheckpointRequestType::Delete ||
Copy link
Collaborator

@sharpeye sharpeye Jun 19, 2025

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()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

HasError(record)

Copy link
Contributor

Note

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

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 1cc9c57.

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

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.

3 participants