-
Notifications
You must be signed in to change notification settings - Fork 37
[Blobstore] delete obsolete uncofirmed blobs #4710
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
52f7757 to
7f315b1
Compare
7f315b1 to
685933d
Compare
ec63582 to
a115144
Compare
| TEvPartitionPrivate::TEvDeleteObsoleteUnconfirmedBlobsRequest>( | ||
| MakeIntrusive<TCallContext>(CreateRequestId()), | ||
| commitId, | ||
| std::move(msg->BlobsToConfirm)); |
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.
может просто удалим все блобы соответствующего коммита?
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.
по идее это должно быть редкое событие, наверное можно прям тут ExecuteTx, переделаю
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.
я имел ввиду, не нужно ли удалить все блобы соответствующего коммита, то есть, может быть не нужно передавать BlobsToConfirm?
кажется стоит так делать ради атомарности
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.
да, так будет более правильно, но в данном случае результат будет всегда тот же самый, поправил
cloud/blockstore/libs/storage/partition/part_actor_deleteobsoleteunconfirmedblobs.cpp
Outdated
Show resolved
Hide resolved
|
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 85ba1f6.
🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit 85ba1f6.
|
85ba1f6 to
323150f
Compare
Currently, if we receive error during WriteMergedBlocks, unconfirmed blobs left in the table until next restart.
This PR resolves this problem by cleaning table from unwanted blobs.
On restart we will have less amount of blobs to confirm with BS