Skip to content

Conversation

Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Sep 5, 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.

@Shubham8287 Shubham8287 requested a review from Centril September 5, 2025 11:53
@Shubham8287 Shubham8287 changed the base branch from master to centril/clear-table-and-fix-drop-table September 5, 2025 11:53
@Centril Centril force-pushed the centril/clear-table-and-fix-drop-table branch from 08b70cf to 813f34c Compare September 8, 2025 12:15
@bfops bfops added the release-any To be landed in any release window label Sep 8, 2025
@Shubham8287 Shubham8287 requested a review from Centril September 12, 2025 11:50
@Shubham8287 Shubham8287 requested a review from Centril September 23, 2025 05:54
# 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.
Base automatically changed from shub/truncate to centril/truncate September 23, 2025 11:11
@Shubham8287 Shubham8287 requested a review from Centril September 23, 2025 13:58
Base automatically changed from centril/truncate to master September 23, 2025 15:54
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor improvements, and then this should be ready to merge.

@Shubham8287 Shubham8287 added this pull request to the merge queue Sep 23, 2025
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 <[email protected]>
Signed-off-by: Shubham Mishra <[email protected]>
Co-authored-by: Mazdak Farrokhzad <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2025
@Shubham8287 Shubham8287 added this pull request to the merge queue Sep 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 23, 2025
@Shubham8287 Shubham8287 added this pull request to the merge queue Sep 23, 2025
Merged via the queue into master with commit 94809dc Sep 23, 2025
25 of 26 checks passed
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