-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-5709] Infer
LastOffsetPersisted
correctly
The `LastOffsetPersisted` of block produced by Kafka orderer may be off by 1 in a corner case, see FAB-5709 for details. This is fixed by having `Ordered` method returning a boolean indicating if there's still message pending in the receiver. Also, a hacky way of calculating offset in subtests is removed in favor of querying sarama mock Consumer directly. Change-Id: I7f0384cd9df498b686d0971696fdcca102c52a59 Signed-off-by: Jay Guo <[email protected]>
- Loading branch information
1 parent
ae4e37d
commit a3b40de
Showing
7 changed files
with
233 additions
and
245 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
Oops, something went wrong.