|
@@ -266,6 +266,10 @@ public class Node implements Closeable {
|
|
|
* Start the node. If the node is already started, this method is no-op.
|
|
|
*/
|
|
|
public Node start() {
|
|
|
+ if (!lifecycle.moveToStarted()) {
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
ESLogger logger = Loggers.getLogger(Node.class, NODE_NAME_SETTING.get(settings));
|
|
|
logger.info("starting ...");
|
|
|
// hack around dependency injection problem (for now...)
|