mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
DataNode: Adding the additional DataNode start step (#18270)
* adding the additional datanode start step * switch to correct guard in remote reindexing * fixing test * moving steps a bit more, fixing tests * changing startup * changing startup, fixing states etc. * fix test * fix: do not set preflight result to FINISHED for reindexing branch --------- Co-authored-by: Matthias Oesterheld <matthias.oesterheld@graylog.com>
This commit is contained in:
@@ -112,6 +112,7 @@ public class DataNodeConfigurationPeriodical extends Periodical {
|
||||
switch (state) {
|
||||
case CONFIGURED -> writeCsr(c);
|
||||
case SIGNED -> readSignedCertificate(c);
|
||||
case STARTUP_TRIGGER -> dataNodeProvisioningService.changeState(nodeId.getNodeId(), DataNodeProvisioningConfig.State.STARTUP_REQUESTED);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ public class OpensearchProcessService extends AbstractIdleService implements Pro
|
||||
case STARTUP_REQUESTED -> startUp();
|
||||
case STORED -> {
|
||||
configure();
|
||||
dataNodeProvisioningService.changeState(event.nodeId(), DataNodeProvisioningConfig.State.STARTUP_REQUESTED);
|
||||
dataNodeProvisioningService.changeState(event.nodeId(), DataNodeProvisioningConfig.State.STARTUP_PREPARED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user