You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i load a map with config values, and one of those has a typo/unknown key, RocksDB lets me know there is something wrong with the map in a more meaningful manner.
Example: DBOptions found unexpected key: "avoid_unecesary_blocking_io" (typo)
Or, a parameter which will be filled with an error message, or DBOptions.printErrors(). Anything :D
If you have a lot of options, it makes it hard to find the culprit
Actual behavior
DBOptions returns null instead of a DBOptions object
Steps to reproduce the behavior
for Java:
// my file contains a typo on one line, but all other options are correct
Map<String, Properties> map = loadDBOptionsFromMyFileSomewhere();
DBOptions options = DBOptions.getDBOptionsFromProps(map.get("DBOptions"));
if (options == null){
System.out.println("Failed loading DBOptions")
}
The text was updated successfully, but these errors were encountered:
kwek20
changed the title
ignore_unknown_options mention wrong options
Loading options from map mentions wrong options
Nov 21, 2019
Expected behavior
When i load a map with config values, and one of those has a typo/unknown key, RocksDB lets me know there is something wrong with the map in a more meaningful manner.
Example:
DBOptions found unexpected key: "avoid_unecesary_blocking_io"
(typo)Or, a parameter which will be filled with an error message, or
DBOptions.printErrors()
. Anything :DIf you have a lot of options, it makes it hard to find the culprit
Actual behavior
DBOptions returns null instead of a DBOptions object
Steps to reproduce the behavior
for Java:
The text was updated successfully, but these errors were encountered: