maxfortun opened a new pull request, #16802:
URL: https://github.com/apache/kafka/pull/16802

   This PR adds ability to specify a custom produce request parser. A custom 
produce request parser would allow to intercept all incoming messages before 
they get into the broker and apply broker wide logic to the messages. This 
could be a trace , a filter, or a transform(such as lineage). 
   
   The inline `new ProduceRequest(new ProduceRequestData(new 
ByteBufferAccessor(buffer), version), version)` was moved out of 
[ProduceRequest.java](clients/src/main/java/org/apache/kafka/common/requests/ProduceRequest.java)
 into its own class 
[ProduceRequestParser.java](clients/src/main/java/org/apache/kafka/common/requests/ProduceRequestParser.java),
 and ProduceRequest class was augmented with the dynamic loading of a specified 
parser class. When no class is specified, the default one is loaded maintaining 
full backward compatibilty.  
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to