-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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> |
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.
не надо создавать кольцевую зависимость
volume зависит от partition_nonrepl
в обратную сторону зависимость делать не надо
SelfId(), | ||
0, // cookie | ||
MakeIntrusive<TCallContext>() | ||
); |
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.
на предыдущую строку
MakeIntrusive<TCallContext>() | ||
); | ||
|
||
TVector<TString> tags(1); |
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.
это вектор длины 1
в следующей строке добавляется второй элемент
сделай просто TVector tags({IntermediateWriteBufferTagName});
auto request = std::make_unique<TEvService::TEvAddTagsRequest>( | ||
DiskId, | ||
std::move(tags) | ||
); |
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.
на предыдущую строку
Y_UNUSED(runtime); | ||
if (event->GetTypeRewrite() == TEvService::EvAddTagsRequest) | ||
{ | ||
tagEnabled = true; |
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.
проверь, что отправляется правильный тег
|
||
NPrivateProto::TModifyTagsRequest modifyTagsRequest; | ||
modifyTagsRequest.SetDiskId(msg->DiskId); | ||
for (const auto& tag : msg->Tags) { |
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.
пробел перед : не нужен
#2722