You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/06/01 03:28:44 UTC

[GitHub] [pulsar-client-go] jonyhy96 commented on issue #257: Retry number limit in reconnectToBroker

jonyhy96 commented on issue #257:
URL: https://github.com/apache/pulsar-client-go/issues/257#issuecomment-636593540


   > The current number of retries is limited and the value of OperationTimeout. The default value is 30s. If there is no successful retry within the time of OperationTimeout, the attempt will not continue.
   > 
   > Reference to [get_conn](https://github.com/apache/pulsar-client-go/blob/master/pulsar/internal/rpc_client.go#L114-L129)
   
   Thanks for reply,the get_conn will timeout in default 30s or given OperationTimeout,but the [reconnectToBroker](https://github.com/apache/pulsar-client-go/blob/master/pulsar/producer_partition.go#L188) will runs infinitly.
   
   You can recurrent this by handlely terminate pulsar cluster after client successfully create a producer/consumer.


----------------------------------------------------------------
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:
users@infra.apache.org