-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case where ListOffset returns an empty array of offsets (#78)
There was an assumption made that ListOffset always returns at least one offset. However, in the case where the timestamp requested is out of range (or for brokers that do not have a time index, when the offset is in the first segment) where an empty array is returned. This updates the TopicOffsets model to handle that case and insert a -1 instead to indicate that no offset was available. I also added a test specifically for that case.
- Loading branch information
1 parent
3609630
commit 1031313
Showing
3 changed files
with
25 additions
and
2 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