Repository navigation
S3Queue: add failed_files_ttl_sec setting - #121752
adityaksolves wants to merge 21 commits into
Conversation
|
Workflow [PR], commit [03340ef] Summary: ✅
AI ReviewSummaryAt head Missing context / blind spots
Findings❌ Blockers
Tests
Performance & SafetyThe widened Final VerdictStatus: ❌ Block. Include the two deferred retry-state fixes in the reviewed change and validate the focused scenarios before merge. Address or measure the ingestion and cleanup regressions. The previous claim that this PR introduces the ordered-mode default count cap was dropped: the base revision already applies that cap. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes17 object files changed (+158.85 KiB total), 0 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units23 translation units recompiled, 177 s compile time in total, 23 of them have a recent master baseline. |
|
Pushed fixes for the two in-scope findings: updateState(Processed) → onStateObservedInKeeper(Processed) (55e7bf9) Per the scope discussion in |
|
@kssenii Hi! Just wanted to gently follow up on this PR. All CI checks have passed, and I've addressed the feedback from the initial review in the latest commits. Could you please take another look when you get a chance? Thanks! |
|
AI review on #125392 flagged a behavior change from this PR: for a legacy ordered table with |
|
@kssenii Phase 2 PRs are up and CI-tested: #125392 (SYSTEM DROP), #125433, #125565 (stale .retriable cleanup + live loading_retries), #125604 (ordered tracked_files_limit ALTER + exclusive-mode terminality). The AI-review blockers on those PRs come from this base PR and are covered by the follow-ups. One decision I need from you: for legacy ordered tables with tracked_file_ttl_sec set and tracked_files_limit = 0, failed-file expiry used to follow tracked_file_ttl_sec, but now sweep_failed_by_ttl is unordered-only, so failures persist after upgrade. Should I preserve the old expiry for legacy ordered tables, or is this change intended? |
|
@kssenii Pushed e3b35e5 for the legacy ordered-table question: it was a regression from this PR, not intended. Before it, an ordered table with tracked_file_ttl_sec set expired /failed by that TTL, and the isUnordered gate (in cleanup_failed_files and in the sweep) dropped that. Ordered tables now expire /failed by tracked_file_ttl_sec again. failed_files_ttl_sec stays unordered-only, because I have not verified that removing a failed node by TTL is safe against the ordered watermark. I also restored the ordered retry assertion in test_max_set_age, which had been skipped for ordered mode. |
|
Dear @kssenii, 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. |
Adds the failed_files_ttl_sec engine setting, which controls time-based expiry of terminal failed files in unordered mode. tracked_files_limit's description is also updated to document that it caps the failed-files set by count in both ordered and unordered mode, independently of the new setting. For tables created before this setting existed, the value is inherited from tracked_file_ttl_sec at attach time; this inheritance is a one-time fallback and is not kept in sync with later changes to tracked_file_ttl_sec.
…che reconciliation
…arker in waitForPathToBeProcessed
…ck in hash-ring path; fix retriable marker test helper
…r a cache-hot Failed file
…_ttl_sec Before failed_files_ttl_sec, ordered tables expired /failed by tracked_file_ttl_sec. Gating the TTL sweep on isUnordered dropped that for existing ordered tables. Keep failed_files_ttl_sec unordered-only, and sweep /failed for ordered tables by tracked_file_ttl_sec as before. Restore the ordered-mode retry assertion in test_max_set_age.
…ring a keeper path Ordered tables expire /failed by tracked_file_ttl_sec, so replicas sharing a keeper path must agree on it, as they did before failed_files_ttl_sec. Check it for all modes again and keep failed_files_ttl_sec and tracked_files_limit in the unordered block. Add a test for two ordered tables with different tracked_file_ttl_sec.
Ordered tables expire /failed by tracked_file_ttl_sec, unordered ones by failed_files_ttl_sec. Update the comments that said failed_files_ttl_sec is the only time-based control.
…cached retries from Keeper, poll for marker removal in tests
acb76fe to
03340ef
Compare
Related: #113054
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
S3Queue: add
failed_files_ttl_secsetting to automatically clean up terminal failed files from Keeper after TTL expires in unordered mode.Detailed Description
This is Phase 1 of splitting PR #113784 per reviewer (@kssenii) feedback.
Adds the
failed_files_ttl_sectable setting forS3Queue/AzureQueueengine inunorderedmode:Workflow [PR]
Sync PR [sync-upstream/pr/121752]