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

Refine variant_node::put return value #615

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Refine variant_node::put return value #615

merged 1 commit into from
Dec 20, 2024

Conversation

koujl
Copy link
Contributor

@koujl koujl commented Dec 19, 2024

Replace the generic put_failed error status with more specific error messages to enhance clarity and prevent confusion during log analysis.

Replace the generic put_failed error status with more specific error
messages to enhance clarity and prevent confusion during log analysis.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 50.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 66.38%. Comparing base (1a0cef8) to head (2b9a12d).
Report is 107 commits behind head on master.

Files with missing lines Patch % Lines
...rc/include/homestore/btree/detail/variant_node.hpp 45.45% 6 Missing ⚠️
.../include/homestore/btree/detail/btree_internal.hpp 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #615      +/-   ##
==========================================
+ Coverage   56.51%   66.38%   +9.86%     
==========================================
  Files         108      109       +1     
  Lines       10300    10843     +543     
  Branches     1402     1485      +83     
==========================================
+ Hits         5821     7198    +1377     
+ Misses       3894     2932     -962     
- Partials      585      713     +128     

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

@koujl koujl merged commit 4bd3e12 into eBay:master Dec 20, 2024
21 checks passed
@koujl koujl deleted the put_ret branch December 20, 2024 03:28
@@ -56,7 +56,7 @@ retry:
const auto matched = my_node->match_range(req.working_range(), start_idx, end_idx);
if (!matched) {
BT_NODE_LOG_ASSERT(false, my_node, "match_range returns 0 entries for interior node is not valid pattern");
ret = btree_status_t::put_failed;
ret = btree_status_t::not_found;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiaoxichen It is unclear to me. It needs some explanation for the different cases. A caller wants to insert but get into a range that may be wrong, what does not_found mean? it is not supposed not to be found.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think? in which case we will hit into this?

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.

4 participants