1
0
mirror of synced 2026-07-19 16:25:08 +00:00

DATAES-316 - Revert: NodeClientFactoryBean doesn't shutdown ES on destroy life-cycle.

Original PR: #335
This commit is contained in:
Peter-Josef Meisch
2019-10-25 21:38:46 +02:00
committed by GitHub
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);
}