-
Notifications
You must be signed in to change notification settings - Fork 24
[Solo repl dev] Fix log dev flush timer cancel race #723
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
Conversation
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #723 +/- ##
===========================================
+ Coverage 56.51% 67.23% +10.71%
===========================================
Files 108 109 +1
Lines 10300 11984 +1684
Branches 1402 1666 +264
===========================================
+ Hits 5821 8057 +2236
+ Misses 3894 3093 -801
- Partials 585 834 +249 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| void LogDev::stop_timer() { | ||
| if (m_flush_timer_hdl != iomgr::null_timer_handle) { | ||
| iomanager.run_on_forget(logstore_service().flush_thread(), [this]() { | ||
| folly::Future< int > LogDev::stop_timer() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: You can use folly::Unit too.
* Wait on cancel_timer during stop logdev
Only impact Solo Repl Dev which enables timer based flush thread:
Testing:
Run 100 times for the test case:
Cross tested wit HomeBlocks as well to run 100 times.