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

UpdateSchema does not respect transaction abort #1497

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevinjqliu
Copy link
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

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.

[discuss] Transaction API's autocommit
1 participant