-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: 1753 Figure out what's missing, create it, and keep going.
- Loading branch information
Showing
4 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Actually, it is convenient to have this flag in the code with such a simple edge conditions. But it is really impossible to detect what is wrong with the influxd if those dirs existed but empty before first run. The only message you will have is: log closed. Raft log opener will unable to detect server is not initializing but configuration is missing in place. It is worth of adding the check into raft.log.open() and influxdb.run.openBroker near if (initialization) happening.
May be it is better to separate logic and checks of initialization of raft log and server broker. Those dirs existing check is not covering all cases anyway.