Skip to content

Add a checked commit transaction method - #225

Closed
harlowja wants to merge 3 commits into
python-zk:masterfrom
harlowja:checked_commit
Closed

harlowja wants to merge 3 commits into
python-zk:masterfrom
harlowja:checked_commit

Conversation

@harlowja

Copy link
Copy Markdown
Contributor

Instead of just having a commit method that leaves
the majority of the failure handling to the caller it
is nice to have a checked commit method that does most
of this work onbehalf of the caller (and throws an
exception when errors are detected).

harlowja added 3 commits July 24, 2014 23:43
Instead of just having a commit method that leaves
the majority of the failure handling to the caller it
is nice to have a checked commit method that does most
of this work onbehalf of the caller (and throws an
exception when errors are detected).
openstack-gerrit pushed a commit to openstack/taskflow that referenced this pull request Aug 30, 2014
To ensure we reliably handle when a transaction fails
we should use the checked_commit() helper function instead
of the currently not fully exception handling kazoo
transaction commit function.

This should be addressed in the future with:

- python-zk/kazoo#224
- python-zk/kazoo#225

Those have not merged yet (or been released) so we need
to use a similar function in the meantime.

Change-Id: Icf83b7d4955c11227e733287170a7bd3ab372bd2
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Aug 30, 2014
Project: openstack/taskflow  70d9199ea374b558a9918089de94af0b6c76811b

Use checked_commit() around consume() and abandon()

To ensure we reliably handle when a transaction fails
we should use the checked_commit() helper function instead
of the currently not fully exception handling kazoo
transaction commit function.

This should be addressed in the future with:

- python-zk/kazoo#224
- python-zk/kazoo#225

Those have not merged yet (or been released) so we need
to use a similar function in the meantime.

Change-Id: Icf83b7d4955c11227e733287170a7bd3ab372bd2
@bbangert

Copy link
Copy Markdown
Member

Please re-open to rebase and update as needed.

@bbangert bbangert closed this May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants