Fix file identifier in rescheduleTasksFromReplica#1493
Fix file identifier in rescheduleTasksFromReplica#1493ianton-ru wants to merge 3 commits intoantalya-26.1from
Conversation
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Audit ReviewNo confirmed defects in the PR. The fix correctly centralizes file identifier logic and resolves the key mismatch in Pre-existing risk: data race on
|
|
Follow-up audit note: additional pre-existing UB/crash risks in 1) Unsynchronized
|
Audit Report: PR #1493 — Fix file identifier in rescheduleTasksFromReplica (latest)Scope: Altinity/ClickHouse PR #1493 1. Scope and partitions
2. Call graphEntrypoints (external):
Dispatch / flow (current code):
Shared state and locking:
Downstream: Iterator Error paths: Exceptions thrown under lock or after checks; lock_guard releases on unwind; no half-update of maps. 3. Transition matrix
Invariants: (1) Same file → same key everywhere via 4. Logical code-path testing summaryPartition 1 — getFileIdentifier:
Partition 2 — synchronization:
Expected outcomes: No key mismatch; no data race on shared maps; no use-after-erase; no deadlock (single mutex). 5. Fault categories and category-by-category injection
Fault-category completion matrix: All in-scope categories executed or N/A; none deferred. 6. Confirmed defects (introduced by this PR)None.
7. Pre-existing / residual (not introduced by this PR)
8. Coverage accounting and stop-condition status
9. Assumptions and limits
10. Confidence rating and evidence to raise it
11. Residual risks and untested paths
Summary (compact)Audit update for PR #1493 (latest: file identifier fix + unsynchronized access fix): Confirmed defects: None. Scope: Two partitions — (1) file identifier centralization and reschedule key fix, (2) mutex protection for all accesses to |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Solved #1486
File identifier for distributed tasks was changed between 25.8 and 26.1
In frontport #1414 it was missed and rescheduleTasksFromReplica continued to use old variant.
Fix unsyncronized access to
replica_to_files_to_be_processedclass member.Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: