Thufayl commented on PR #13512:
URL: https://github.com/apache/seatunnel/pull/13512#issuecomment-7268435819

   **Issue 2 (license header):** done. I added the ASF header to 
`WebSocketSourceClientReconnectTest` in `ac025bb6`.
   
   **Issue 1 (integration coverage):** I looked into extending 
`WebSocketSourceIT`, but there's a catch that's specific to this bug. The 
behavior the fix changes only happens when an open message send is rejected 
after the handshake has already succeeded. There's no reliable way to make a 
real Docker based server reject that send on demand, so an E2E for it would 
come down to timing, which is the flaky kind of test the review warns against. 
I could instead have the server fail the handshake, which is deterministic, but 
that path already fails after `max_reconnect_times` with or without my change, 
so it would not actually test the fix. That is why I kept the coverage in the 
two callback level tests. They run the exact `onOpen` and `onDisconnected` 
sequence against a stubbed socket and check the final error code and cause.
   
   If it is useful, I am happy to add a recovery test to `WebSocketSourceIT` 
that drops the first connection, serves the rows on the retry, and checks that 
the job still finishes. That would protect the reconnect path from regressions, 
though it would not cover the budget exhaustion case for the reason above. 
Happy to go with whatever you prefer here.


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