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

Simplify the raft_event callback for mesg_state_mgr. #112

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

szmyd
Copy link
Collaborator

@szmyd szmyd commented Dec 12, 2024

Existing implementation was clumsy and incorrect. Simplify.

@szmyd szmyd requested a review from xiaoxichen December 12, 2024 22:31
Existing implementation was clumsy and incorrect. Simplify.
@szmyd szmyd force-pushed the simplify_raft_event branch from 50750b2 to a0aca42 Compare December 12, 2024 22:32
@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 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.90%. Comparing base (0262682) to head (a0aca42).
Report is 49 commits behind head on main.

Files with missing lines Patch % Lines
src/lib/manager_impl.cpp 75.00% 0 Missing and 1 partial ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
+ Coverage   71.47%   72.90%   +1.42%     
==========================================
  Files          21       20       -1     
  Lines         887      882       -5     
  Branches      103      101       -2     
==========================================
+ Hits          634      643       +9     
+ Misses        188      171      -17     
- Partials       65       68       +3     

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

if (auto sp = m_manager.lock(); sp)
sp->generic_raft_event_handler(group_id, type, param);
else
return nuraft::cb_func::ReturnNull;
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: pls add a log here(before line 394) to print out the ManagerImpl instance is destroyed(or shutdown), which will be helpful for debug

@xiaoxichen xiaoxichen merged commit 90702dd into eBay:main Dec 17, 2024
12 checks passed
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