This repository was archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1315 from grafana/nowait_when_no_messages
Rationalised NotifierKafka's backlog processing: keep bootTimeOffsets local to consumePartition and renamed it to lastAvailableOffsetAtStartup at startup invoke GetOffset() to retrieve the explicit index in all cases ('oldest', 'newest', timestamp) factored duplicated code into updateProcessBacklog() and updateMetrics() when consumePartition() starts, check if backlog has been processed; fixes all cases of backlog processing stuck when no messages need to be received. Note: partitionLagMetric was previously set to GetOffset(..., OffsetNewest) - msg.Offset and is now set to GetOffset(..., OffsetNewest) - msg.Offset - 1. Other metrics remained unchanged.
- Loading branch information
Showing
2 changed files
with
56 additions
and
52 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