Skip to content

Commit

Permalink
Fix TEvPatch interface and remove unnecessary patching-related output…
Browse files Browse the repository at this point in the history
… in KV tablet (#1693)
  • Loading branch information
alexvru authored Feb 8, 2024
1 parent 7f54b71 commit 0ffd6c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ydb/core/base/blobstorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,8 @@ struct TEvBlobStorage {
REQUEST_VALGRIND_CHECK_MEM_IS_DEFINED(diffs[idx].Buffer.Data(), diffs[idx].Buffer.size());

if (idx) {
Y_VERIFY_S(diffs[idx - 1].Offset + diffs[idx].Buffer.Size() <= diffs[idx].Offset,
"EvPatch invalid: Diffs mustn't be re-covered,"
Y_VERIFY_S(diffs[idx - 1].Offset + diffs[idx - 1].Buffer.Size() <= diffs[idx].Offset,
"EvPatch invalid: Diffs must not overlap,"
<< " [" << idx - 1 << "].Offset# " << diffs[idx - 1].Offset
<< " [" << idx - 1 << "].Size# " << diffs[idx - 1].Buffer.Size()
<< " [" << idx << "].Offset# " << diffs[idx].Offset
Expand Down
3 changes: 0 additions & 3 deletions ydb/core/keyvalue/keyvalue_storage_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ class TKeyValueStorageRequest : public TActorBootstrapped<TKeyValueStorageReques

NKikimrProto::EReplyStatus status = ev->Get()->Status;
if (status != NKikimrProto::OK) {
Cerr << "Patch Not OK response!\n" << NKikimrProto::EReplyStatus_Name(status) << Endl;
Cerr << ev->Get()->ErrorReason << Endl;
TInstant now = TAppData::TimeProvider->Now();

TStringStream str;
Expand All @@ -192,7 +190,6 @@ class TKeyValueStorageRequest : public TActorBootstrapped<TKeyValueStorageReques
return;
}

Cerr << "Patch OK response!\n";
ui64 cookie = ev->Cookie;
ui64 patchIdx = cookie;
if (patchIdx >= IntermediateResults->Patches.size() && patchIdx >= IntermediateResults->Commands.size()) {
Expand Down

0 comments on commit 0ffd6c5

Please sign in to comment.