Skip to content

Conversation

@koujl
Copy link
Contributor

@koujl koujl commented Jan 26, 2026

Global timers using all_worker regex can compete with default worker reactors, potentially jamming high-priority IO tasks and causing deadlocks.

Context: #847

@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2026

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

Codecov Report

❌ Patch coverage is 56.25000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.38%. Comparing base (1a0cef8) to head (ef38c0e).
⚠️ Report is 308 commits behind head on master.

Files with missing lines Patch % Lines
src/lib/replication/service/raft_repl_service.cpp 56.25% 0 Missing and 14 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #854      +/-   ##
==========================================
- Coverage   56.51%   48.38%   -8.13%     
==========================================
  Files         108      110       +2     
  Lines       10300    12818    +2518     
  Branches     1402     6152    +4750     
==========================================
+ Hits         5821     6202     +381     
+ Misses       3894     2532    -1362     
- Partials      585     4084    +3499     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koujl koujl marked this pull request as ready for review January 26, 2026 04:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses potential deadlock issues by moving RaftReplService timers from global worker reactors to a dedicated reactor, preventing timer competition with high-priority IO tasks.

Changes:

  • Replaced global timers with thread timers running on a dedicated "raft_repl_svc_timer" reactor
  • Wrapped timer cancellation in run_on_wait to ensure execution on the correct reactor fiber
  • Bumped version from 7.2.1 to 7.2.2

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/lib/replication/service/raft_repl_service.cpp Refactored timer initialization to use dedicated reactor and thread timers instead of global timers
conanfile.py Incremented version number to reflect the changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Global timers using `all_worker` regex can compete with default worker
reactors, potentially jamming high-priority IO tasks and causing
deadlocks.

Signed-off-by: Jilong Kou <jkou@ebay.com>
Copy link
Contributor

@JacksonYao287 JacksonYao287 left a comment

Choose a reason for hiding this comment

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

LGTM

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