Skip to content

UpdateSchema does not respect transaction abort#1497

Closed
kevinjqliu wants to merge 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/UpdateSchema-transaction
Closed

UpdateSchema does not respect transaction abort#1497
kevinjqliu wants to merge 1 commit intoapache:mainfrom
kevinjqliu:kevinjqliu/UpdateSchema-transaction

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

@kevinjqliu kevinjqliu commented Jan 8, 2025

Closes #1253

While looking at #1433, i noticed that UpdateSchema does not respect the transaction semantic, i.e. it does not abort the whole transaction when any update in the transaction fails.

This is similar to #1246 and we had a discussion around it then. I raised #1253 to track.

The issue is from setting Transaction's autocommit=True. This is set for both UpdateSchema and UpdateSpec (source).

To reproduce, run test with

poetry run pytest tests/integration/test_rest_schema.py::test_abort_transaction -s -vvv

@github-actions
Copy link
Copy Markdown

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 17, 2026
@github-actions
Copy link
Copy Markdown

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[discuss] Transaction API's autocommit

1 participant