Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RevertAppendInternal #11177

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

Mytherin
Copy link
Collaborator

Supersedes #11173

Changes made in #11011 resulted in total_rows only being updated and version info only being appended in FinalizeAppend. When reverting, FinalizeAppend is never called. This lead to not all rows being correctly reverted which lead to rows remaining in the table in case of constraint failures.

This PR alters RevertAppendInternal to no longer look at total_rows, and instead directly look into the segments to clean up the appends.

@Mytherin Mytherin requested a review from taniabogatsch March 15, 2024 12:23
@taniabogatsch
Copy link
Contributor

I just checked and with these changes, both test/sql/index/art/vacuum/test_art_vacuum_rollback.test and test/sql/transactions/test_index_large_aborted_append.test now pass with a vector size of 2 on relassert.

@Mytherin Mytherin merged commit badf7a2 into duckdb:main Mar 15, 2024
44 checks passed
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 17, 2024
Merge pull request duckdb/duckdb#11177 from Mytherin/fixrevertappendinternal
Merge pull request duckdb/duckdb#11187 from carlopi/centralized_twine_upload
@Mytherin Mytherin deleted the fixrevertappendinternal branch June 7, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants