forked from cockroachdb/cockroach
-
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.
kvserver/rangefeed: handle StreamMuxer.run errors
Previously, the mux rangefeed completion watcher ignored stream.Send errors and simply returned, allowing the main loop to continue receiving rangefeed requests even after completion watcher completes. This meant that grpc stream continues taking rangefeed requests even after the rangefeed completion watcher shut down. While not currently problematic, this issue gets worse as the stream muxer begins handling additional tasks, such as invoking rangefeed cleanup callbacks. Additionally, the main loop did not watch for context cancellation or the stopper. This patch addresses these issues by ensuring proper error handling in the main loop. Part of: cockroachdb#126561 Release note: none
- Loading branch information
Showing
2 changed files
with
103 additions
and
72 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
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