Skip to content

fix: add explicit destroyMethod to SolrClient bean#97

Closed
adityamparikh wants to merge 1 commit into
apache:mainfrom
adityamparikh:fix/solrclient-destroy-method
Closed

fix: add explicit destroyMethod to SolrClient bean#97
adityamparikh wants to merge 1 commit into
apache:mainfrom
adityamparikh:fix/solrclient-destroy-method

Conversation

@adityamparikh
Copy link
Copy Markdown
Contributor

Summary

  • Add explicit @Bean(destroyMethod = "close") to SolrClient bean to ensure HTTP connections are properly released on shutdown

Test plan

  • ./gradlew build passes
  • ./gradlew nativeTest -Pnative passes (119/119 tests)
  • No regressions

🤖 Generated with Claude Code

HttpJdkSolrClient implements Closeable and holds HTTP connection
resources. While Spring can infer the close method, making it explicit
with @bean(destroyMethod = "close") is safer and ensures HTTP
connections are properly released on shutdown.

Closes #14

Signed-off-by: Aditya Parikh <aditya.m.parikh@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
@adityamparikh adityamparikh force-pushed the fix/solrclient-destroy-method branch from e95f1ae to 38ff26a Compare May 2, 2026 17:00
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