mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
Extended preflight check, added logging and adapted state machine transitions (#15149)
* Extended preflight check, added logging and adapted state machine transitions * fixed opensearch preflight check * fixed opensearch preflight check, add tests
This commit is contained in:
@@ -38,7 +38,9 @@ public class ProcessStateMachine {
|
||||
|
||||
// Freshly created process, it hasn't started yet and doesn't have any pid.
|
||||
config.configure(ProcessState.NEW)
|
||||
.permit(ProcessEvent.PROCESS_STARTED, ProcessState.STARTING);
|
||||
.permit(ProcessEvent.PROCESS_STARTED, ProcessState.STARTING)
|
||||
.permit(ProcessEvent.PROCESS_TERMINATED, ProcessState.TERMINATED)
|
||||
.permit(ProcessEvent.HEALTH_CHECK_FAILED, ProcessState.TERMINATED);
|
||||
|
||||
// the process has started already, now we have to wait for a running OS and available REST api
|
||||
// the startupFailuresCounter keeps track of failed REST status calls and allow failures during the
|
||||
|
||||
Reference in New Issue
Block a user