Sorry I didn't recognize you're also asking it here as well. I'm in favor of describing it in this discussion thread so the discussion itself can go forward. So copying my answer here:
We have some use case which we don't just rely on everything what Kafka consumer provides. We want to know current assignment on this consumer, and to get the latest assignment, we called the hack `poll(0)`. That said, we don't want to pull any records here, and if I'm not missing here, there's no way to accomplish this. Please guide me if I'm missing something. Thanks, Jungtaek Lim (HeartSaVioR) On Sat, Aug 10, 2019 at 2:11 AM Matthias J. Sax <matth...@confluent.io> wrote: > Thanks for the KIP. > > Can you elaborate a little bit more on the use case for this feature? > Why would a consumer need to update it's metadata explicitly? > > > -Matthias > > On 8/8/19 8:46 PM, Jungtaek Lim wrote: > > Hi devs, > > > > I'd like to initiate discussion around KIP-505, exposing new public > method > > to only update assignment metadata in consumer. > > > > `poll(0)` has been misused as according to Kafka doc it doesn't guarantee > > that it doesn't pull any records, and new method `poll(Duration)` doesn't > > have same semantic, so would like to propose new public API which only > does > > the desired behavior. > > > > KIP page: https://cwiki.apache.org/confluence/x/z5NiBw > > > > Please feel free to suggest any improvements on proposal, as I'm new to > > Kafka community and may not catch preferences (like TimeoutException vs > > boolean, etc.) on Kafka project. > > > > Thanks in advance! > > Jungtaek Lim (HeartSaVioR) > > > > -- Name : Jungtaek Lim Blog : http://medium.com/@heartsavior Twitter : http://twitter.com/heartsavior LinkedIn : http://www.linkedin.com/in/heartsavior