Repository navigation
Conversation
|
Workflow [PR], commit [cadcd8f] Summary: ❌
AI ReviewSummary
Missing context / blind spots
Final VerdictStatus: ✅ Approve |
9e99e18 to
987be9c
Compare
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 49/64 (76.56%) · Uncovered code |
3984cec to
b622bf7
Compare
77e50f7 to
f9d6177
Compare
b622bf7 to
1f3b94d
Compare
f9d6177 to
88ea678
Compare
1f3b94d to
31629e0
Compare
Build profile diff (arm_release)Commit See the job log for details. |
108526d to
575f60c
Compare
…urning empty checksums The packed replica-fetch path (DataPartsExchange::downloadPartToDisk) calls checkDataPart at :971 to recompute and verify the archive checksums. Make checkDataPart rethrow a retryable error instead of returning empty checksums, so the receiver retries the fetch rather than publishing an unverified part, and drop the now-dead empty-checksums fetch guard. An Azure HTTP failpoint cannot isolate that line: on a packed fetch the archive-index read, the metadata reads and checkDataPart's own read all hit the same random-key data.packed blob via open-ended GETs, so a 403 fails the first (index) read before checkDataPart runs. Add a scoped code failpoint check_data_part_retryable_error inside checkDataPart that throws a retryable Poco::TimeoutException after the part is on disk, plus a two-node packed-fetch test. The test proves the fetch actually reached checkDataPart's retryable path by waiting for the injected error on the receiver's system.replication_queue (num_tries / last_exception) -- not merely that the part stayed unpublished, which a stalled queue would also satisfy -- and lowers max_postpone_time_for_failed_replicated_fetches_ms so the failed fetch retries converge quickly.
575f60c to
e1c93b3
Compare
|
Dear @SmitaRKulkarni, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
@arsenmuk sorry for waiting, was busy with other tasks. It looks good, let's finish |
…tapart-rethrow # Conflicts: # tests/integration/test_azure_403_handling/test.py
|
@Avogar @SmitaRKulkarni thank you very much for taking a look, and sorry for my delay of getting back. The change is now updated |
|
Dear @Avogar, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
@groeneai merge latest master and resole conflicts |
|
I can't push to
Everything else merges cleanly. With that resolution, One non-conflicting interaction: #133447 added |
…tapart-rethrow # Conflicts: # src/Storages/MergeTree/checkDataPart.cpp
Problem.
checkDataPartswallows a retryable error and returns empty checksums, soCHECK TABLEand the fetch path treat a transient failure as "verified" and can persist an empty integrity baseline. Failure scenario:Fix. Rethrow retryable errors so callers' retry/skip guards fire; remove the now-dead empty-checksums guard on the fetch path.
Changes.
Storages/MergeTree/checkDataPart:return {}->throwon a retryable error.Storages/MergeTree/DataPartsExchange: delete the now-dead empty-checksums fetch guard.tests/integration/test_azure_403_handling: CHECK-TABLE-surfaces-transient test.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
checkDataPartswallowing a retryable error and returning empty checksums, soCHECK TABLEcould report a part as OK and a fetch could accept an unverified part after a transient failure. Retryable errors are now rethrown so the check is retried later instead of masking a transient failure as verified.Workflow [PR]
Sync PR [sync-upstream/pr/112874]