bells / elasticsearch-analysis-dynamic-synonym

The dynamic synonym plugin adds a synonym token filter that reloads the synonym file(local file or remote file) at given intervals (default 60s).
369 stars 181 forks source link

Explicitly close for ClosableHttpResponse method #106

Closed ronaldkonjer closed 2 years ago

ronaldkonjer commented 2 years ago

Hereby a pull request to add an explicit close for ClosableHttpResponse method in the final clause of remoteSynonymFile. We are seeing memory usage of our ES masters build up slowly over time when using this plugin and it would not hurt to close this connection just to be sure it is not creating leaks.