Re: [DISCUSSION] PIP-128: Add new command STOP_PRODUCER and STOP_CONSUMER

2021-12-31 Thread Lan Liang
I believe that you can revoke permission for some topic/consumer. Best Regards, Lan Liang On 12/29/2021 20:25,包子 wrote: Thanks reply, `terminate the topic` is useful 2021年12月29日 11:3113,PengHui Li 写道: What is the background of the requirement? Usually, we will not force to close the produc

Re: [DISCUSSION] PIP-128: Add new command STOP_PRODUCER and STOP_CONSUMER

2021-12-29 Thread 包子
Thanks reply, `terminate the topic` is useful > 2021年12月29日 11:3113,PengHui Li 写道: > > What is the background of the requirement? > Usually, we will not force to close the producer and consumer at the > server-side, > because we don't if the client-side can handle this case well. > > Or, if the

Re: [DISCUSSION] PIP-128: Add new command STOP_PRODUCER and STOP_CONSUMER

2021-12-28 Thread PengHui Li
What is the background of the requirement? Usually, we will not force to close the producer and consumer at the server-side, because we don't if the client-side can handle this case well. Or, if the topic will retire, and you don't want the clients to connect to it, you can just terminate the topi

Re: [DISCUSSION] PIP-128: Add new command STOP_PRODUCER and STOP_CONSUMER

2021-12-28 Thread 包子
Issue: https://github.com/apache/pulsar/issues/13488 > 2021年12月29日 10:3812,包子 写道: > > ## Motivation > > Broker send `CLOSE_PRODUCER/CLOSE_CONSUMER` to client when delete topic, But > client will be reconnect. If config `allowAutoTopicCreation=true` will > trigger create topic again. > > http

[DISCUSSION] PIP-128: Add new command STOP_PRODUCER and STOP_CONSUMER

2021-12-28 Thread 包子
## Motivation Broker send `CLOSE_PRODUCER/CLOSE_CONSUMER` to client when delete topic, But client will be reconnect. If config `allowAutoTopicCreation=true` will trigger create topic again. https://github.com/apache/pulsar/blob/9f599c9572e5d9b1f15efa6e895e7eb29b284e57/pulsar-client/src/main/jav