Repository navigation
fix(tasks): expire soft-deleted tabulars in inactive warehouses - #2151
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughTabular deletion now works for inactive warehouses. Storage tests and a new integration test verify that scheduled expiry removes a soft-deleted table in an inactive warehouse and records one corresponding purge task or log entry. ChangesInactive warehouse expiry
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
Summary
A soft-deleted table, view or generic table whose expiry passed while its warehouse was inactive was never dropped. The expiration task did not find the tabular, logged a warning and recorded success. The tabular stayed soft-deleted forever, and with purge, its files were never deleted.
drop_tabularnow also drops tabulars in inactive warehouses. The purge that follows already runs in inactive warehouses. The API drop paths are unchanged: they load the tabular through an active warehouse first.Changes
drop_tabularquery. Thedrop_tabulartrait docs now state that it works in active and inactive warehouses..sqlxregenerated for the changed query.Tests
test_expiration_queue_drops_table_in_inactive_warehouse: a soft-deleted table in an inactive warehouse is dropped on schedule, and its purge is scheduled. It fails without the fix.test_drop_tabular_inactive_warehouse_returns_404pinned the old filter. It is nowtest_drop_tabular_inactive_warehouse_succeedsand asserts that the drop returns the table's location.Notes for reviewers
Release notes
Summary by CodeRabbit
Bug Fixes
Documentation