LeBW opened a new pull request #11553:
URL: https://github.com/apache/pulsar/pull/11553


   <!--
   ### Contribution Checklist
     
     - Name the pull request in the form "[Issue XYZ][component] Title of the 
pull request", where *XYZ* should be replaced by the actual issue number.
       Skip *Issue XYZ* if there is no associated github issue for this pull 
request.
       Skip *component* if you are unsure about which is the best component. 
E.g. `[docs] Fix typo in produce method`.
   
     - Fill out the template below to describe the changes contributed by the 
pull request. That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue, not mix up code from 
multiple issues.
     
     - Each commit in the pull request has a meaningful commit message
   
     - Once all items of the checklist are addressed, remove the above text and 
this checklist, leaving only the filled out template below.
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   ### Motivation
   This is an improvement to 
[PIP-70](https://github.com/apache/pulsar/wiki/PIP-70%3A-Introduce-lightweight-broker-entry-metadata).
 Now the client is able to get the broker entry metadata.
   
   ### Modifications
   1. increment the client protocol version from 17 to 18.
   2. add a configuration `enableExposingBrokerEntryMetadataToClient` in the 
broker configuration.
   3. Let the broker send the broker entry metadata to the client when `client 
protocol version >= 18` and `enableExposingBrokerEntryMetadataToClient` is true.
   4. Add client support for broker entry metadata. Add two methods 
`getBrokerPublishTime()` and `getIndex()` to utilize the broker entry metadata 
in `Message`.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   Added test for `getBrokerPublishTime()` and `getIndex()`.
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (**yes**)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (**yes**)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
   #### For contributor
   
   For this PR, do we need to update docs?
   
   - If yes, please update docs or create a follow-up issue if you need help.
     
   
   
   


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