Repository navigation
Do not use fake tx for object storage disks - #89658
Conversation
|
Workflow [PR], commit [4aadfea] Summary: ❌
AI ReviewSummaryThis PR removes Findings❌ Blockers
Final Verdict❌ Changes requested. |
|
Dear @antonio2368, 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. |
|
Dear @antonio2368, 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. |
|
It is not |
|
📊 Cloud Performance Report ✅ AI verdict: This PR reworks data-part commit/transaction semantics on the write, merge, and mutate paths (removing the fake-transaction shortcut and moving commits explicitly), and touches nothing in the SELECT read hot path. The only flagged query, ClickBench Q28, is a read-only SELECT showing a -5.6% shift where the two tests disagree and the underlying measurements were noisy (CV around 29%). That delta cannot plausibly come from this change and reads as run-to-run variance; the not_sure verdict is correct. No real performance signal here. clickbenchFlagged queries (1 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
| }(); | ||
|
|
||
| part_storage_for_loading->beginTransaction(); | ||
| if (!to_remote_disk) |
There was a problem hiding this comment.
Pure mechanical change: with to_remote_disk=1 this method will write to disk, bypassing the data part storage.
|
|
||
| /// Need to overwrite explicetly because this disk change | ||
| /// a lot of "delegate" methods. | ||
| return createEncryptedTransaction(); |
There was a problem hiding this comment.
Removing the last use_fake_transaction branch here gives encrypted disks the same silent-upgrade problem as object_storage: registerDiskEncrypted still builds the disk from the raw config and does not reject unknown per-disk keys, so an installation that keeps <use_fake_transaction>true</use_fake_transaction> will still start but will now switch from FakeDiskTransaction to the real DiskEncryptedTransaction path with no startup error. That changes part-write visibility and rollback semantics on upgrade. Please either keep honoring the setting for a deprecation window, or explicitly fail when config.has(config_prefix + ".use_fake_transaction") so the migration is not silent.
…rkingSetAndGetPartsToRemoveFromZooKeeper
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 122/125 (97.60%) · Uncovered code |
|
Hi @Michicosun @antonio2368 @CheSema — a couple of suggestions to make this PR easier for reviewers and the changelog reader. Description (currently
Ignore this if the current title/body is intentional. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch changes how object storage disk transactions work. Now, native to the metadata storage transactions will be used by default instead of the fake ones used before.
Version info
26.8.1.403(included in26.8and later)