forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/stm_manager: yield to prevent busy loops when apply results in error
If an apply results in error the stm manager should yield to prevent busy looping and consuming a lot of CPU cycles. Fixed yielding in background apply fiber and added a yield if foreground apply didn't make progress. Signed-off-by: Michał Maślanka <michal@redpanda.com>
- Loading branch information
1 parent
08af2b2
commit e121770
Showing
1 changed file
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters