mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-30 15:52:12 +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 {
|
try {
|
||||||
// NodeClient.close() is a noop, no need to call it here
|
// NodeClient.close() is a noop, no need to call it here
|
||||||
logger.info("Closing elasticSearch node");
|
logger.info("Closing elasticSearch node");
|
||||||
if (node != null) {
|
// closing the Node causes tests to fail in the pipeline build and on some
|
||||||
node.close();
|
// "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) {
|
} catch (final Exception e) {
|
||||||
logger.error("Error closing ElasticSearch client: ", e);
|
logger.error("Error closing ElasticSearch client: ", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user