Skip to content

TIKA-5064 Close HTTP clients when a fetcher is replaced. - #3604

Open
bartek wants to merge 1 commit into
apache:mainfrom
bartek:main
Open

bartek wants to merge 1 commit into
apache:mainfrom
bartek:main

Conversation

@bartek

@bartek bartek commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

HttpFetcher and AtlassianJwtFetcher both maintain HttpClients, but they never close them. Previously, when SaveFetcher or DeleteFetcher were called, the old instance was never closed, resulting in each client keeping a "Connector evictor" thread alive.

This change adds Closeable and both fetchers now close their clients. An additional test is added to check that the evictor threads stop on close.

HttpFetcher and AtlassianJwtFetcher both maintain HttpClients, but they
never close them. Previously, when SaveFetcher or DeleteFetcher were
called, the old instance was never closed, resulting in each client
keeping a "Connector evictor" thread alive.

This change adds Closeable and both fetchers now close their clients. An
additional test is added to check that the evictor threads stop on
close.
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