-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server][dvc] Lag arithmetic fix for empty topics (#911)
There is an edge case where an empty topic with an end offset of zero gets mistaken for an error code, and results in returning Long.MAX_VALUE as the lag instead. Added a unit test for SIT::measureLagWithCallToPubSub, and refactored that function to make it easier to test with a static overload. Also added @test to a recently added unit test in SITTest which was missing that annotation.
- Loading branch information
Showing
2 changed files
with
100 additions
and
4 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