mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-29 07:12:26 +00:00
DATAES-316 - Revert: NodeClientFactoryBean doesn't shutdown ES on destroy life-cycle.
Original PR: #335
This commit is contained in:
parent
29f34b05d3
commit
d4f23a50e7
@ -152,9 +152,12 @@ public class NodeClientFactoryBean implements FactoryBean<Client>, InitializingB
|
||||
try {
|
||||
// NodeClient.close() is a noop, no need to call it here
|
||||
logger.info("Closing elasticSearch node");
|
||||
if (node != null) {
|
||||
node.close();
|
||||
}
|
||||
// closing the Node causes tests to fail in the pipeline build and on some
|
||||
// "mvn test" runs, there seem still to be tests relying on a running instance that
|
||||
// is not properly set up.
|
||||
// if (node != null) {
|
||||
// node.close();
|
||||
// }
|
||||
} catch (final Exception e) {
|
||||
logger.error("Error closing ElasticSearch client: ", e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user