Hi all,

I think what Gwen is trying to ask (correct me if I'm wrong) is how we can
infer which topics are associated with
Streams from the admin client's topic list. I agree that this doesn't seem
possible, since as she pointed out the
topics list (or even description) lacks the specific information we need.

What we could do instead is use the admin client's
`describeConsumerGroups` API to get the information
on the Streams app's consumer group specifically -- note that the Streams
application.id config is also used
as the consumer group id, so each app forms a group to read from the input
topics. We could compile a list
of these topics just by looking at each member's assignment (and even check
for a StreamsPartitionAssignor
to verify that this is indeed a Streams app group, if we're being paranoid).

The reset tool actually already gets the consumer group description, in
order to validate there are no active
consumers in the group. We may as well grab the list of topics from it
while it's there. Or did you have something
else in mind?

On Sat, Jan 18, 2020 at 6:17 PM Sang wn Lee <ssangdd...@gmail.com> wrote:

> Thank you
>
> I understand you
>
> 1. admin client has topic list
> 2. applicationId can only have one stream, so It won't be a problem!
> 3. For example, --input-topic [reg]
> Allowing reg solves some inconvenience
>
>
> On 2020/01/18 18:15:23, Gwen Shapira <g...@confluent.io> wrote:
> > I am not sure I follow. Afaik:
> >
> > 1. Topics don't include client ID information
> > 2. Even if you did, the same ID could be used for topics that are not
> Kafka
> > Streams input
> >
> > The regex idea sounds doable, but I'm not sure it solves much?
> >
> >
> > On Sat, Jan 18, 2020, 7:12 AM Sang wn Lee <ssangdd...@gmail.com> wrote:
> >
> > > Thank you
> > > Gwen Shapira!
> > > We'll add a flag to clear all topics by clientId
> > > It is ‘reset-all-external-topics’
> > >
> > > I also want to use regex on the input topic flag to clear all matching
> > > topics.
> > >
> > > On 2020/01/17 19:29:09, Gwen Shapira <g...@confluent.io> wrote:
> > > > Seem like a very nice improvement to me. But I have to admit that I
> > > > don't understand how this will how - how could you infer the input
> > > > topics?
> > > >
> > > > On Thu, Jan 16, 2020 at 10:03 AM Sang wn Lee <ssangdd...@gmail.com>
> > > wrote:
> > > > >
> > > > > Hello,
> > > > >
> > > > > Starting this thread to discuss KIP-560:
> > > > > wiki link :
> > > > >
> > >
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-560%3A+Auto+infer+external+topic+partitions+in+stream+reset+tool
> > > > >
> > > > > I'm newbie
> > > > > I would like to receive feedback on the following features!
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to