-
Notifications
You must be signed in to change notification settings - Fork 974
Commit
…fatal error occurs in the course of a request execution
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,6 +355,9 @@ public CloseableHttpResponse execute( | |
} catch (final RuntimeException ex) { | ||
connHolder.abortConnection(); | ||
throw ex; | ||
} catch (final Error error) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ok2c
Author
Member
|
||
connManager.shutdown(); | ||
throw error; | ||
} | ||
} | ||
|
||
|
@ok2c @sebbASF @garydgregory Shouldn't we just abort the connection instead of shutting down? Now when an error like: http://mail-archives.apache.org/mod_mbox/hc-dev/201806.mbox/%3CJIRA.13165247.1528697329000.142310.1528697340016@Atlassian.JIRA%3E comes. That is when JVM throws out of memory error we'll shut down the POOL and future request will all throw "Connection pool shut down".
This is what I've observed when the system was in load (and java heap space was low), but "Connection pool shut down" persist even after system recovered.