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

projections: Catch errors from ETS calls #205

Merged
merged 1 commit into from
May 15, 2023

Conversation

the-mikedavis
Copy link
Member

ETS calls may fail if a projection function returns a term that can't be inserted or deleted. These should be handled and logged so that they don't crash the khepri_machine process.

ETS calls may fail if a projection function returns a term that can't
be inserted or deleted. These should be handled and logged so that they
don't crash the 'khepri_machine' process.
@the-mikedavis the-mikedavis added the enhancement New feature or request label May 9, 2023
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 76.47% and project coverage change: +0.12 🎉

Comparison is base (9ed206a) 88.53% compared to head (ba30853) 88.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
+ Coverage   88.53%   88.65%   +0.12%     
==========================================
  Files          20       20              
  Lines        2790     2802      +12     
==========================================
+ Hits         2470     2484      +14     
+ Misses        320      318       -2     
Flag Coverage Δ
erlang-24 88.32% <76.47%> (-0.03%) ⬇️
erlang-25 88.22% <76.47%> (+0.08%) ⬆️
erlang-26.0-rc2 88.22% <76.47%> (+0.30%) ⬆️
os-ubuntu-latest 88.65% <76.47%> (+0.12%) ⬆️
os-windows-latest 88.11% <76.47%> (+0.23%) ⬆️

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

Impacted Files Coverage Δ
src/khepri_projection.erl 82.66% <76.47%> (-1.47%) ⬇️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dumbbell dumbbell added this to the v0.8.0 milestone May 15, 2023
@dumbbell dumbbell merged commit 2f00dc4 into main May 15, 2023
12 checks passed
@dumbbell dumbbell deleted the projections/catch-bad-ets-calls branch May 15, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants