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

   Thanks for the continued review, Claus.
   
   **Latest commit (bc6727ba)** addresses the side effect you raised in your 
14:20 review:
   - After `OAuth2ClientConfigurer.configureHttpClient()` builds the token 
client with `connManagerShared=true`, it now restores `connManagerShared=false` 
before returning, so the endpoint's own client (built from the same builder in 
`HttpEndpoint.createHttpClient()` after all configurers run) gets its own 
`IdleConnectionEvictor` when `evictIdleConnections`/`evictExpiredConnections` 
is configured. The commit message explains the reasoning in detail.
   
   **On the class Javadoc:** the current code on the branch says "Tests related 
to CAMEL-27233" and "simulating the configurer lifecycle" — the "regression 
test" / "stop/restart" language was removed in commit 1a3d8f1e. If you are 
seeing older content, the branch HEAD is bc6727ba.
   
   **On the JIRA reproducer:** you are right, and I want to be direct about it: 
we don't have confirmation that this change fixes the reported `camel run` 
scenario. `tokenAndApiOnSameHostSucceeds` passes without the fix, which means 
the test does not reproduce the actual trigger. The double-ownership invariant 
that the fix enforces is correct — `InternalHttpClient` closes all co-owned 
non-shared resources on `close()`, and with two clients sharing one manager 
where `connManagerShared=false` for both, any explicit close of the token 
client will shut down the pool — but the JIRA failure happens on the first 
request of a live route, before any explicit close.
   
   What would help: can you share or describe the exact server and YAML route 
from the JIRA report? If you can run it against this branch, that would give us 
the evidence. Alternatively, if you can pinpoint in the stack trace where 
`PoolingHttpClientConnectionManager.close()` is being called, we can find the 
actual trigger and write a test that faithfully reproduces it. Without that, 
`tokenClientCloseDoesNotShutDownEndpointPool` tests the ownership invariant 
that the fix guarantees, but does not prove the JIRA is fixed.
   
   I'm holding the port labels as you suggested until we have that confirmation.
   
   _On behalf of @gnodet._


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