Details
-
Improvement
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
Semantic
-
Low Hanging Fruit
-
All
-
None
Description
1. We should use the enum: ERR_WRONG_MACHINE_STATE and ERR_WRONG_DISK_STATE to replace the magic number: 1 and 3
exitOrFail(1, e.getMessage(), e.getCause());
exitOrFail(3, "Exception encountered during startup", e);
2. Delete the useless field: ERR_OUTDATED_SCHEMA