flowchartsman commented on issue #432: URL: https://github.com/apache/pulsar-client-go/issues/432#issuecomment-754093889
Worth noting is that with this working the attempted resubscribe then triggers a series of scary-looking errors that are not a big deal: ``` ERRO[0016] [Failed to create consumer] consumerID=2 error="server error: TopicNotFound: Topic does not exist" name=bstga subscription=regexconsumer topic="persistent://testtenant/logs/topic1" INFO[0016] [Reconnecting to broker in 400ms] consumerID=2 name=bstga subscription=regexconsumer topic="persistent://testtenant/logs/topic1" ERRO[0016] [Failed to unsubscribe consumer] consumerID=2 error="server error: MetadataError: Consumer not found" name=bstga subscription=regexconsumer topic="persistent://testtenant/logs/topic1" ``` Some introspection into errors could help to avoid this, since you could check if the error was "TopicNotFound" and then just skip further retries if `disableForceTopicCreation` is enabled. Might be worth creating an error type in `connection.handleResponseError` I'll open another issue. ---------------------------------------------------------------- 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]
