Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Dec 2, 2024

Why

The code assumed that the transaction would always succeed. It was kind of the case with Mnesia because it would throw an exception if it failed.

Khepri returns an error instead. The code has to handle it. In particular, we see timeouts in CI and before this patch, they caused a crash because the list comprehension was asked to work on a tuple.

How

We now retry a few times for 10 seconds.


This is an automatic backport of pull request #12853 done by Mergify.

[Why]
It can return an error.

(cherry picked from commit 913bd9f)
[Why]
The code assumed that the transaction would always succeed. It was kind
of the case with Mnesia because it would throw an exception if it
failed.

Khepri returns an error instead. The code has to handle it. In
particular, we see timeouts in CI and before this patch, they caused a
crash because the list comprehension was asked to work on a tuple.

[How]
We now retry a few times for 10 seconds.

(cherry picked from commit 4621fe7)
@michaelklishin michaelklishin added this to the 4.0.5 milestone Dec 2, 2024
@michaelklishin michaelklishin merged commit c77de48 into v4.0.x Dec 2, 2024
271 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-12853 branch December 2, 2024 16:05
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.

3 participants