torwig opened a new pull request, #1217: URL: https://github.com/apache/incubator-kvrocks/pull/1217
Enrich error messages that can occur during the loading of the configuration for both `Kvrocks` and `Kvrocks2Redis`. Minor refactoring of edited source files. Add a description of default values to `Kvrocks2Redis` configuration file (`cluster-enable` changed to `no` because in the source code, the default value is `false`). Examples of new error messages 1. Kvrocks ``` Failed to load config. Error: failed to open file '/home/yaroslav/tests/kvrocks/kvrocks3.conf': No such file or directory Failed to load config. Error: at line #L52: failed to set value of field 'cluster-enabled': argument must be 'yes' or 'no' Failed to load config. Error: at line #L332: compaction-checker-range is invalid: invalid range format, the range should be between 0 and 24 Failed to load config. Error: at line #L24: malformed config line: config line ends unexpectedly in quoted string ``` 2. Kvrocks2Redis ``` Failed to load config. Error: the specified Kvrocks working directory './kvrocks-data/' doesn't exist Failed to load config. Error: at line #L22: Kvrocks port value should be between 0 and 65535 Failed to load config. Error: failed to open file '/home/yaroslav/tests/kvrocks/kvrocks2redis2.conf': No such file or directory ``` Closes: #637 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
