chore(weave): add calls_merged to calls_complete backfill driver#7535
Draft
gtarpenning wants to merge 6 commits into
Draft
chore(weave): add calls_merged to calls_complete backfill driver#7535gtarpenning wants to merge 6 commits into
gtarpenning wants to merge 6 commits into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…eads Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cityHash64(id) % N bucketing rescans the full project per bucket without reducing aggregation state, and fixed hex-prefix ranges collapse to a single bucket on time-ordered UUIDv7 ids. Replace with adaptive prefix drilling so every plan/fill/verify/stats query touches <= --chunk-rows ids, plus external group-by spill and single-replica aggregation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/backfill_calls_complete.py) migrating dormant projects from calls_merged to calls_complete via an invisible staging table published withATTACH PARTITION FROMQA campaign (816 projects, 100.1M calls, zero parity violations)
Three error classes hit and fixed along the way:
select_sequential_consistency=1ZNODEEXISTS(code 244, ~0.4% of fills) on staging drop/recreate under the same name -> tenacity retry mirroring the migrator's transient-code patterncityHash64(id) % Nrescans the project per bucket without cutting aggregation state, and fixed hex ranges collapse to one bucket on time-ordered UUIDv7 ids -> adaptive id-range chunking (--chunk-rows) across plan/fill/verify/stats; a 32.6M-call project then ported in 690s on a 14 GiB clusterTesting
local CH 25.12 end-to-end with adversarially fragmented seed data; full QA-cluster campaign journals + reports in
scripts/backfill_runs/.