SEZ9 commented on issue #13452: URL: https://github.com/apache/seatunnel/issues/13452#issuecomment-7178958009
Thanks for the detailed report and code links. I have not verified the analysis against the connector source myself. Since the report is based on source inspection of `dev` at `950f334c5f7e`, could you confirm whether the same behavior is still present on the latest `dev`? Possible fix direction for a contributor: - Reset the reconnect counter only after all `open_messages` have been sent successfully, or count a rejected open-message send as a failed attempt toward `max_reconnect_times`. - Clear the stored send error at the start of each connection attempt, so the terminal error reflects the final attempt's failure. A fix should include tests for the two cases described in the issue: 1. The handshake completes but `send()` returns `false` on every attempt: retries stop at `max_reconnect_times` with a terminal error. 2. An earlier attempt rejects an open message and the final attempt fails before `onOpen()`: the reported error is the final attempt's failure. <!-- streview-comment:2618 --> -- 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]
