-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent java.lang.IllegalStateException: Connection pool shut down
on clean install
#689
Comments
Hm. My first (really rough) thought is that we can triple-check that all The |
I'll file an issue with Api-X and see if we can sort this out. |
PoolingHttpClientConnectionManager... |
In API-X |
@ajs6f yeah, the bug is prior 4.4, I see some settings and option to set the shared pool and i think it is something in API-X, but we(claw) are triggering it. So it is not our error, and agree with the sharing part .setConnectionManagerShared(true) |
Cool, I will continue tracing through. |
@ajs6f is it https://github.com/fcrepo4-labs/fcrepo-api-x/blob/63022f47ec32e05e689e138220eee56aef713561/fcrepo-api-x-registry/src/main/java/org/fcrepo/apix/registry/HttpClientFactory.java#L117-L118? Can we tune the config there when we deploy CLAW + the shared client part? (I´m on a meeting so distracted... sorry) |
@DiegoPino This is our injected client. I think we might need to adjust there. |
@DiegoPino Those were my initial thoughts too after reading the stack overflow page I posted in the issue description. |
@dannylamb i missed your link, jajajaja. Same one i pasted...feel so silly 🤦♂️ so funny. |
@DiegoPino We're just on the same page, man. Literally. =) |
* Islandora/documentation#689: Adding stronger pooling config for client * Marking connection pool as shared to prevent premature shutdown
…#689) * Adds check for invalid PIDs to islandora_object_load fails * Reordered invalid PID check to catch more invalidity cases * Exploring the logical limits of Drupal Coding Style * Removes watchdog logging when islandora_load_object gets a malformed PID
While testing the fixes required for #686, I ran into this every 10 or so times I set up Karaf with Api-X and Alpaca.
A quick googling leads me to believe that there's timing issues where Api-X needs to close connections, and that's shutting down the connection pool.
https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html#setConnectionManagerShared(boolean) seems to be a solution according to stack overflow https://stackoverflow.com/a/28646605.
@ajs6f Thoughts? I know we talked about whether or not we consider our custom http cllient to be shared when you were doing the initial work.
The text was updated successfully, but these errors were encountered: