Move lock file check for data dir to later step (#18636)

* do not write/check for lock file in data dir during preflight test

* remove unnecessary directory read check, handled by validator

* add lockfile check to startup

* remove unused exception

* fix compatibility check url

* add more information and show data node list on restart step

* ignore PROCESS_STOPPED event when in WAITING_FOR_CONFIGURATION state to avoid ugly exception

* fix test and show MigrationDatanodeList
This commit is contained in:
Matthias Oesterheld
2024-03-15 15:20:53 +01:00
committed by GitHub
parent 342c9c3c9b
commit 0a887859ea
10 changed files with 52 additions and 57 deletions

View File

@@ -48,6 +48,7 @@ public class ProcessStateMachine extends StateMachine<ProcessState, ProcessEvent
.permit(ProcessEvent.PROCESS_PREPARED, ProcessState.PREPARED)
// jump to started only allowed to facilitate startup with insecure config
.permit(ProcessEvent.PROCESS_STARTED, ProcessState.STARTING)
.ignore(ProcessEvent.PROCESS_STOPPED)
.ignore(ProcessEvent.HEALTH_CHECK_FAILED);
config.configure(ProcessState.PREPARED)