Skip to content

Fix NPE in AbstractConnectionPool.activate() racing with remove() - #15571

Open
afeozzz wants to merge 1 commit into
jetty:jetty-12.1.xfrom
afeozzz:fix/12.1.x/connection-pool-activate-remove-race
Open

Fix NPE in AbstractConnectionPool.activate() racing with remove()#15571
afeozzz wants to merge 1 commit into
jetty:jetty-12.1.xfrom
afeozzz:fix/12.1.x/connection-pool-activate-remove-race

Conversation

@afeozzz

@afeozzz afeozzz commented Aug 8, 2026

Copy link
Copy Markdown

HttpClient sporadically fails requests with

java.lang.NullPointerException: Cannot invoke
"org.eclipse.jetty.client.AbstractConnectionPool$EntryHolder.isExpired(long)" because "holder" is null

This happens when a connection is removed from the pool concurrently with being activated.
We hit this in production under bursty concurrent load against servers that close idle connections.

Signed-off-by: Ilnar Karimov <afeozzz@gmail.com>
@afeozzz
afeozzz force-pushed the fix/12.1.x/connection-pool-activate-remove-race branch from 3424163 to 078711c Compare August 8, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant