-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(indexer): Retry indexer refactor (#45018)
Brings back #44721 with a small difference. Now we pass a join_timeout of 0.0 to the stream processor, so it shuts down immediately dropping any in process batches. This matches the current behaviour in the batching step which immediately drops any in flight batches during shutdown https://github.com/getsentry/sentry/blob/be6286e1d40e445760dd6f5c209574090cc05add/src/sentry/sentry_metrics/consumers/indexer/common.py#L151-L156 The previous version of the PR took a much long time to revoke partitions as it attempted to finish processing all in flight batches. This caused timeouts and other weird behaviour during deployment / rebalancing.
- Loading branch information
Showing
3 changed files
with
22 additions
and
290 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
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