CritasWang opened a new issue, #5:
URL: https://github.com/apache/iotdb-client-rust/issues/5

   `Session::open` only fails over at the TCP layer: the loop over 
`config.endpoints` opens a `Connection`, but `authenticate()` (openSession + 
requestStatementId) runs **after** the loop. `reconnect()` does the opposite — 
it retries connect **and** authenticate for every endpoint.
   
   With a 3-node cluster where one node accepts TCP but fails `openSession` 
(e.g. overloaded, misconfigured, or wedged by the missing socket timeout), 
roughly one `open()` in three fails while 2 of 3 nodes are healthy.
   
   Fix: move the `authenticate()` step inside the endpoint loop, mirroring 
`reconnect()`.
   


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