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

add use-intermediate-write-buffer tag if scrubbing found a mismatch #2836

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WilyTiger
Copy link
Collaborator

@WilyTiger WilyTiger commented Jan 10, 2025

@@ -12,6 +12,7 @@
#include <cloud/blockstore/libs/storage/core/probes.h>
#include <cloud/blockstore/libs/storage/core/proto_helpers.h>
#include <cloud/blockstore/libs/storage/core/unimplemented.h>
#include <cloud/blockstore/libs/storage/volume/volume_state.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

не надо создавать кольцевую зависимость

volume зависит от partition_nonrepl
в обратную сторону зависимость делать не надо

SelfId(),
0, // cookie
MakeIntrusive<TCallContext>()
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

на предыдущую строку

MakeIntrusive<TCallContext>()
);

TVector<TString> tags(1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

это вектор длины 1
в следующей строке добавляется второй элемент
сделай просто TVector tags({IntermediateWriteBufferTagName});

auto request = std::make_unique<TEvService::TEvAddTagsRequest>(
DiskId,
std::move(tags)
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

на предыдущую строку

Y_UNUSED(runtime);
if (event->GetTypeRewrite() == TEvService::EvAddTagsRequest)
{
tagEnabled = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

проверь, что отправляется правильный тег


NPrivateProto::TModifyTagsRequest modifyTagsRequest;
modifyTagsRequest.SetDiskId(msg->DiskId);
for (const auto& tag : msg->Tags) {
Copy link
Collaborator

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants