shibd opened a new pull request, #1267:
URL: https://github.com/apache/pulsar-client-go/pull/1267

   ### Motivation
   If peek a partitioned topic, will see a message id: `7316:0:-1:-1`, the 
parititonIndex not should is -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.
   
   ### Verifying this change
   Add `TestPeekMessageForPartitionedTopic` to cover it.
   
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / GoDocs / 
not documented)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to