Skip to content

Conversation

Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Sep 22, 2025

Description of Changes

Based on,and to fix mentioned issues on #3215 i.e -

  1. Mark table for truncation after anaylyzing TxData::inserts too.
  2. visit_truncates can not call schema_for_tables for dropped tables as schema info has been deleted from st_* tables. Hence, added a field in ReplayVisitor to cache table names.

This PR decouples truncation info from delete entries, since deletion alone can’t reliably tell about truncation without extra mutations later.

Can be reviewed commit wise.

Testing

Testing using "Add columns" PR.

@Shubham8287 Shubham8287 requested a review from Centril September 22, 2025 11:52
@bfops bfops added the release-any To be landed in any release window label Sep 22, 2025
@Shubham8287 Shubham8287 merged commit df7fa04 into centril/truncate Sep 23, 2025
20 of 21 checks passed
@Centril Centril deleted the shub/truncate branch September 23, 2025 11:11
github-merge-queue bot pushed a commit that referenced this pull request Sep 23, 2025
# Description of Changes
- `add_columns_to_table` api to handle `AutoMigrateStep::AddColumns` --
Look at doc comment for more Info.

depends on: #3261

TODO: handle `AutoMigrateStep::DisconnectAllUsers`.

# API and ABI breaking changes
N/A.

# Expected complexity level and risk
2? Changes are not in hotpath but a bug in migration can corrupt tables.

# Testing
a test to exercise the API.

---------

Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants