PG-PG: Add feature to clean up older raw table data, behind FF - #4624
PG-PG: Add feature to clean up older raw table data, behind FF#4624Amogh-Bharadwaj wants to merge 9 commits into
Conversation
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
❌ Test FailureAnalysis: The new Test_Raw_Batch_Cleanup_PG fails deterministically and identically (expected 6 rows, got 10) across all three matrix legs, meaning the PR's raw-table cleanup feature isn't pruning old batches — a real bug, not flakiness. |
44dbd64 to
0bcfad5
Compare
❌ Test FailureAnalysis: The newly-added Test_Raw_Batch_Cleanup_PG (introduced by this PR, absent on main) times out with the raw-table row count frozen at 10 for the entire 60s wait on two of three matrix jobs, indicating the PR's raw-batch cleanup never runs rather than an environmental or timing flake. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
❌ Test FailureAnalysis: Test_Raw_Batch_Cleanup_PG fails deterministically across all three matrix jobs with the raw table row count frozen at 10 until timeout, indicating the raw-table-cleanup feature this PR adds does not work; the accompanying BigQuery 503 and pg_dump "signal: killed" failures are isolated flakes that only affect single legs. |
❌ Test FailureAnalysis: The new test Test_Raw_Batch_Cleanup_PG added by PR #4624 fails deterministically on all three PG matrix jobs with the raw table row count stuck at 10 for the full ~72s poll window, indicating the PR's raw-table cleanup logic never runs rather than any timing, race, or network flakiness. |
❌ Test FailureAnalysis: Real bug: the PR's own new test Test_Raw_Batch_Cleanup_PG fails identically on all three matrix jobs (pg16/pg17/pg18) because raw-table cleanup never runs — the row count stays pinned at 10 until the 60s wait times out. |
❌ Test FailureAnalysis: The PR's own new test Test_Raw_Batch_Cleanup_PG fails deterministically on all three Postgres matrix jobs with the raw table row count frozen at 10 until the WaitFor deadline, indicating the raw-table cleanup added by this PR never runs rather than an intermittent timing issue. |
❌ Test FailureAnalysis: The PR's own new test Test_Raw_Batch_Cleanup_PG fails deterministically on both matrix legs, timing out after 60s with the raw table row count frozen at exactly 10 and never decreasing, indicating the PG→PG raw-table cleanup feature the PR implements is not deleting normalized batches at all. |
Why
The PeerDB raw table grows large over time and has been seen to take up a lot of storage in the target Postgres peer. We want to provide an inbuilt feature to users to ensure raw table stays at a small size
This is going to be behind a feature flag default OFF for now so that upon rollout, the first occurrence of cleanup will not stall normalize due to large amount of raw table batches.
What