forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature - support seek() on Reader (apache#4031)
*Motivation* fix apache#3976 According to what was discussed in pull apache#3983 it would be an acceptable solution to add seek() command to Reader in order to reset a non durable cursor after Reader instance was build. *Modifications* - Bugfix reset() by timestamp on a non-durable consumer, previously the cached cursor was not present, therefore the state set by reset() was missed resulting in a reset() at the beginning of the cursor instead of a reset() at the expected position. - Copy seek() commands to Reader interface from Consumer interface. - Fix inconsistency with lastDequeuedMessage field after seek() command was performed successfully. - Fix consumer discarding messages on receive (after seek() command) due to messages being present on acknowledge grouping tacker.
- Loading branch information
Showing
8 changed files
with
237 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,9 @@ public void flush() { | |
public void close() { | ||
// no-op | ||
} | ||
|
||
@Override | ||
public void flushAndClean() { | ||
// no-op | ||
} | ||
} |
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