shibd opened a new pull request, #1323:
URL: https://github.com/apache/pulsar-client-go/pull/1323

   ### Motivation
   
   This is a catch up for https://github.com/apache/pulsar/pull/21144
   
   When a producer or consumer reconnects, a random number will be generated as 
the key suffix in `ConnectionPool` to create or get the `ClientConnection` 
object from the pool.
   
   
   
https://github.com/apache/pulsar-client-go/blob/ffba2a8fd2781f536bc03ec1408f82f6e4ea4d3a/pulsar/internal/connection_pool.go#L159-L160
   
   ### Modifications
   - Change GetConnection() of connection_pool and add params: keySuffix
   - Generate once keySuffix for consumer/producer when create it.
   - When reconnecting, use this keySuffix to ensure obtaining the same 
connection
   
   ### Verifying this change
   - Add TestSelectConnectionForSameConsumer and 
TestSelectConnectionForSameProducer to cover this.
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to