Issue: https://github.com/apache/pulsar/issues/13488

> 2021年12月29日 10:3812,包子 <wudixiaolong...@icloud.com> 写道:
> 
> ## 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/java/org/apache/pulsar/client/impl/ConnectionHandler.java#L130-L133
> 
> ## Goal
> 
> Add new commands `STOP_PRODUCER/STOP_CONSUMER`, When the client receives the 
> command, it only closes without reconnecting.
> 
> ## API Changes
> 
> 1. Add command to `BaseCommand`
> ```java
> message BaseCommand {
>    enum Type {
>    // ...
>    STOP_PRODUCER = 64;
>    STOP_CONSUMER = 65
>    }
> }
> ```
> 

Reply via email to