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

mnesia_to_khepri: Check MnesiaFun() return value for no_exists #6

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

dumbbell
Copy link
Member

... in addition to exceptions.

Why

mnesia:transation/1 usually returns the reason a transaction was aborted. Throwing an exception was quite RabbitMQ-specific.

How

If we get a no_exists abort reason, we handle it the same way as if we got a no_exists exception.

... in addition to exceptions.

[Why]
`mnesia:transation/1` usually returns the reason a transaction was
aborted. Throwing an exception was quite RabbitMQ-specific.

[How]
If we get a `no_exists` abort reason, we handle it the same way as if we
got a `no_exists` exception.
@dumbbell dumbbell added the bug Something isn't working label Oct 27, 2023
@dumbbell dumbbell added this to the v0.2.1 milestone Oct 27, 2023
@dumbbell dumbbell self-assigned this Oct 27, 2023
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (046439f) 74.51% compared to head (c0eb9b0) 73.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
- Coverage   74.51%   73.96%   -0.56%     
==========================================
  Files          13       13              
  Lines         624      630       +6     
==========================================
+ Hits          465      466       +1     
- Misses        159      164       +5     
Flag Coverage Δ
erlang-24 73.96% <14.28%> (-0.56%) ⬇️
erlang-25 73.96% <14.28%> (-0.08%) ⬇️
erlang-26 73.96% <14.28%> (-0.56%) ⬇️
os-ubuntu-latest 73.96% <14.28%> (-0.56%) ⬇️
os-windows-latest 73.96% <14.28%> (-0.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/mnesia_to_khepri.erl 51.21% <14.28%> (-2.73%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dumbbell dumbbell marked this pull request as ready for review October 27, 2023 09:03
@dumbbell dumbbell merged commit 5cdcdf6 into main Oct 27, 2023
12 checks passed
@dumbbell dumbbell deleted the MnesiaFun-can-return-aborted-no_exists branch October 27, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant