Hi Deng, It's similar to Record Headers in that the metadata isn't used within Kafka itself. The intended purpose of the Metadata is to store additional information such as what application instance made the commit. Most of the value is going to be in giving organizations the ability to do things like audit the commit log.
About half of the commit methods have no way of setting the Metadata so it's currently difficult to make use of. Thanks, Eric A. On Wed, Nov 20, 2019 at 7:58 PM deng ziming <dengziming1...@gmail.com> wrote: > Hi, Eric > what's the use of this method? I reviewed the code and couldn't find much > of the metadata's usage, and I find its usage trivial. > > On Tue, Nov 19, 2019 at 3:19 AM Eric Azama <eazama...@gmail.com> wrote: > > > Hi all, > > > > I'd like to open discussion on KIP-547: Extend ConsumerInterceptor to > allow > > modification of Consumer Commits > > > > This KIP hopes to enable better access to the Metadata included while > > committing offsets. > > > > LINK: > > > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-547%3A+Extend+ConsumerInterceptor+to+allow+modification+of+Consumer+Commits > > > > > > Thanks, > > Eric A. > > >