zzzming opened a new issue #192: Consumer Close() reports failure after Unsubscribe() URL: https://github.com/apache/pulsar-client-go/issues/192 #### Expected behavior If Consumer Close() is called after Unsubscribe(), it will report error that `"server error: MetadataError: Consumer not found" name=consumer12 subscription=sharedsub0 topic="persistent://tenant/ns/topic"` I think once a consumer is unsubscribed, it should set the pc.state = consumerClosed so that internalClose() won't be sending BaseCommand_CLOSE_CONSUMER #### Actual behavior #### Steps to reproduce ``` if err := consumer.Unsubscribe(); err != nil { log.Errorf("", err) } consumer.Close() ``` #### System configuration **Pulsar version**: 2.5.0 Latest golang library
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
