Repository navigation
Parallelize copyFile in DiskObjectStorageTransaction - #105089
Conversation
|
Workflow [PR], commit [706f183] Summary: ✅
AI ReviewSummaryThis PR parallelizes Findings
Tests
Final VerdictStatus: Minimum required actions: fix the fail-fast/backpressure behavior in |
|
This was fixed by #105146. Let's update the branch. |
| const auto locations_for_writing = cluster->getEnabledLocations(); | ||
| const auto missing_locations = cluster->findComplement(locations_for_writing); | ||
| const auto source_local_location = source_cluster->getLocalLocation(); | ||
| /// Dispatch `copyObjectToAnotherObjectStorage` calls in parallel onto the disk-level pool. |
There was a problem hiding this comment.
This PR is marked as Performance Improvement, but I don’t see before/after evidence in the PR description or in added tests for this new parallel path.
Please attach a focused measurement (for example, copy latency/throughput for representative multi-blob files before vs after) to validate the claimed improvement.
There was a problem hiding this comment.
Re-checking current HEAD (ed61ba2c9c406901c4bf2854638a59577a91c57a), this is still missing concrete before/after data for the claimed Performance Improvement in DiskObjectStorageTransaction::copyFile.
Please attach at least one focused measurement (latency or throughput, representative multi-blob copy workload) comparing before vs after so the performance claim is verifiable.
| } | ||
| } | ||
|
|
||
| runner.waitForAllToFinishAndRethrowFirstError(); |
There was a problem hiding this comment.
ThreadPoolCallbackRunnerLocal only rethrows in waitForAllToFinishAndRethrowFirstError after the enqueue loop has already submitted every (location, blob) copy. If the first worker hits a remote exception, copyFile still keeps scheduling and executing the remaining copies, so a failed copy can perform a large amount of extra S3/Azure work and create many more destination blobs that undo then has to clean up. This regresses the previous sequential behavior, which stopped at the first failed copyObjectToAnotherObjectStorage.
Please keep the number of tracked tasks bounded and poll completed tasks while enqueueing, for example with a TaskTracker-style loop or explicit batches no larger than the pool, so the first worker exception stops scheduling promptly and clears completed task handles.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 72/75 (96.00%) | Lost baseline coverage: none · Uncovered code |
|
Why it shows as it was merged by Asya? It was merged by me :D |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Parallelize blob copies in DiskObjectStorageTransaction::copyFile using a per-disk thread pool.
Version info
26.6.1.304