BewareMyPower commented on issue #235:
URL: 
https://github.com/apache/pulsar-client-cpp/issues/235#issuecomment-1488355423

   +1. It's hard to infer the reason without any client side logs.
   
   I tried both unloading the topic and killing the JVM process by force. The 
error logs should be like:
   
   ```
   2023-03-29 18:36:56.773 ERROR [140448651929344] ClientConnection:615 | 
[127.0.0.1:33730 -> 127.0.0.1:6650] Read operation failed: End of file
   2023-03-29 18:36:56.773 ERROR [140448651929344] ClientConnection:1198 | 
[127.0.0.1:33730 -> 127.0.0.1:6650] Connection closed with ConnectError
   2023-03-29 18:36:56.773 INFO  [140448651929344] HandlerBase:148 | 
[0x55b449bd1990, consumer-1, 0] Schedule reconnection in 0.1 s
   ```
   
   If the connection cannot be established, the reconnection should be 
triggered like:
   
   ```
   2023-03-29 18:37:57.077 WARN  [140448651929344] ClientConnection:449 | 
[<none> -> pulsar://localhost:6650] Failed to establish connection: Connection 
refused
   2023-03-29 18:37:57.077 INFO  [140448651929344] ClientConnection:1200 | 
[<none> -> pulsar://localhost:6650] Connection disconnected
   2023-03-29 18:37:57.077 INFO  [140448651929344] HandlerBase:148 | 
[0x55b449bd1990, consumer-1, 0] Schedule reconnection in 0.368 s
   ```


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