gnodet commented on PR #30432:
URL: https://github.com/apache/camel/pull/30432#issuecomment-7098013501

   Thank you all for the thorough reviews!
   
   **Addressed in the latest commit:**
   
   1. **Teardown order** (davsclaus #2): Added an Awaitility wait before 
`server.destroy()` — once every opened watch has signalled its close (via 
`onClosing` or `onFailure`), the WebSocket protocol has completed and the 
remaining exception from `httpServer.close()` is only the Vert.x TCP drain 
race, which is now logged at `WARN` with the reason (apupier, davsclaus).
   
   2. **`awaitClosedWatches` javadoc** (davsclaus #3): Removed the "(not the 
held one)" qualifier — the held watch is now also counted (via the new 
`onClosing`/`onFailure` handlers on the held-watch listener added in the main 
commit).
   
   3. **OkHttp comment** (davsclaus #4): The comment "onClosing and onFailure 
are mutually exclusive in OkHttp" in `OpenSignalingListener` has been corrected 
to "only one fires per connection" — `OpenSignalingListener` wraps the CRUD 
dispatcher's Vert.x listener, not an OkHttp one.
   
   4. **Diagnostic info** (davsclaus #1): `awaitOpenWatches` failure message 
now reports both the number of opened watches and the number of watch requests, 
to help distinguish "watch was requested but never opened" from "watch was 
never requested at all".
   
   **On the root cause** (davsclaus #1): The refactoring from `Semaphore` to 
`Lock+Condition` doesn't change the semantics, as noted. Its value is in the 
improved failure message. I agree the underlying cause of "watch 2 was not 
opened" is still unknown without a failing run with 
`io.fabric8.kubernetes.client.informers` DEBUG logs. I'll add a note to the 
JIRA and monitor CI runs for a repro.
   
   _Guillaume Nodet_


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