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

Index crash long run for put #537

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

shosseinimotlagh
Copy link
Contributor

No description provided.

Copy link
Contributor

@koujl koujl left a comment

Choose a reason for hiding this comment

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

Generally LGTM

@@ -327,6 +332,7 @@ class BtreeNode : public sisl::ObjLifeCounter< BtreeNode > {
uint16_t level() const { return get_persistent_header_const()->level; }

// uint32_t total_entries() const { return (has_valid_edge() ? total_entries() + 1 : total_entries()); }
uint64_t max_keys_in_node() const { return m_trans_hdr.max_keys_in_node; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we wrap all these related codes/methods with #ifdef _PRERELEASE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not needed since it will be called only in prerelease.

@@ -127,10 +246,18 @@ struct IndexCrashTest : public test_common::HSTestHelper, BtreeTestHelper< TestT
this->get_all();
}

void reset_btree() {
this->m_bt->destroy();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest calling remove_index_table for destroyed btree here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. restart makes it erased. nontheless destoy is needed.

@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 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.96%. Comparing base (1a0cef8) to head (9f426ef).
Report is 56 commits behind head on master.

Files with missing lines Patch % Lines
src/include/homestore/btree/detail/simple_node.hpp 50.00% 1 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #537       +/-   ##
===========================================
+ Coverage   56.51%   67.96%   +11.45%     
===========================================
  Files         108      109        +1     
  Lines       10300    10433      +133     
  Branches     1402     1402               
===========================================
+ Hits         5821     7091     +1270     
+ Misses       3894     2674     -1220     
- Partials      585      668       +83     

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

@shosseinimotlagh shosseinimotlagh merged commit 7100c80 into eBay:master Sep 4, 2024
21 checks passed
@shosseinimotlagh shosseinimotlagh deleted the index_crash_long_run branch September 4, 2024 17:45
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