kecona opened a new pull request, #21245:
URL: https://github.com/apache/pulsar/pull/21245

   ### Motivation
   
   We have a scenario that uses the 
`org.apache.pulsar.broker.intercept.BrokerInterceptor#messageProduced`, and 
need to obtain the complete message id and metadata, but the 
`org.apache.pulsar.broker.service.Topic.PublishContext` doesn't include these 
data.
   
   ### Modifications
   
   - Add  `getMessageIdData()` to 
`org.apache.pulsar.broker.service.Topic.PublishContext` to obtain the complete 
message id
   - Add  `getHeaderAndPayload()` to 
`org.apache.pulsar.broker.service.Topic.PublishContext` to obtain the message 
metadata
   
   ### Verifying this change
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   


-- 
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