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

khepri_machine: Do not enforce favor options in machine state queries #246

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

dumbbell
Copy link
Member

Why

We want to leave the caller decide the consistency it wants.

Also, there is a problem with leader and consistent queries in Ra because the function is executed on a remote node and the function reference or the MFA may not be valid, leading to an exception.

How

We just stop setting the favor option.

[Why]
We want to leave the caller decide the consistency it wants.

Also, there is a problem with leader and consistent queries in Ra
because the function is executed on a remote node and the function
reference or the MFA may not be valid, leading to an exception.

[How]
We just stop setting the `favor` option.
@dumbbell dumbbell added the bug Something isn't working label Jan 29, 2024
@dumbbell dumbbell added this to the v0.11.0 milestone Jan 29, 2024
@dumbbell dumbbell requested a review from ansd January 29, 2024 16:03
@dumbbell dumbbell self-assigned this Jan 29, 2024
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b89a13c) 88.96% compared to head (f654493) 88.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   88.96%   88.95%   -0.01%     
==========================================
  Files          20       20              
  Lines        2917     2915       -2     
==========================================
- Hits         2595     2593       -2     
  Misses        322      322              
Flag Coverage Δ
erlang-24 87.89% <100.00%> (+0.06%) ⬆️
erlang-25 87.85% <100.00%> (-0.05%) ⬇️
erlang-26 88.50% <100.00%> (+0.02%) ⬆️
os-ubuntu-latest 88.88% <100.00%> (-0.08%) ⬇️
os-windows-latest 88.67% <100.00%> (-0.01%) ⬇️

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

☔ 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 January 30, 2024 08:09
@dumbbell dumbbell merged commit 2177981 into main Jan 30, 2024
12 checks passed
@dumbbell dumbbell deleted the honor-favor-option-in-machine-state-queries branch January 30, 2024 08:09
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.

None yet

1 participant