-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] peek message will return -1 for partitionIndex (#1267)
### Motivation If peek a partitioned topic, will see a message id: `7316:0:-1:-1`, the parititonIndex should not be -1. ``` pulsarctl subscription peek --count 10 persistent://public/default/my-topic-partition-0 test-sub Message ID : 7316:0:-1:-1 Properties : { "publish-time": "2024-08-08T17:50:39.476+08:00" } Message : 00000000 68 65 6c 6c 6f 2d 31 |hello-1| ``` ### Modifications - Set partition index on peek message.
- Loading branch information
Showing
4 changed files
with
69 additions
and
1 deletion.
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