Repository navigation
Antalya 26.8: Record elapsed_microseconds for S3 conditional and batch deletes in system.blob_storage_log - #2999
Open
sks wants to merge 1 commit into
Conversation
…s in system.blob_storage_log Measure `elapsed_microseconds` with `Stopwatch` around `DeleteObject` in `S3ObjectStorage::removeObjectIfTokenMatchesImpl` and `DeleteObjects` in `S3ObjectStorage::removeObjectsIfExistImpl` (dividing batch elapsed time by `objects.size()` and passing shared `time_now`, matching `src/IO/S3/deleteFileFromS3.cpp`) instead of logging a literal `0` to `system.blob_storage_log` (follow-up noted in Altinity#2534). Signed-off-by: sabith <sks@stackgen.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the
system.blob_storage_logdelete duration follow-up noted in #2534 (comment):Changes
S3ObjectStorage.cpp:S3ObjectStorage::removeObjectIfTokenMatchesImpl: measureused_client->DeleteObject(request)withStopwatchand passelapsedtoblob_storage_log->addEvent(...)instead of a literal0.S3ObjectStorage::removeObjectsIfExistImpl: measureused_client->DeleteObjects(request)withStopwatchand passelapsed / objects.size()(along with a sharedtime_nowtimestamp across the batch's rows, matchingsrc/IO/S3/deleteFileFromS3.cpp:151-169) toblob_storage_log->addEvent(...)instead of a literal0.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Record
elapsed_microsecondsfor S3 conditional and batch deletes insystem.blob_storage_loginstead of logging0.Documentation entry for user-facing changes
system.blob_storage_loginstrumentation fix)CI/CD Options
Exclude tests: