Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-15068][rocksdb] stop writing to RocksDB logs by default
This commit changes the default RocksDB configuration for all PredefinedOptions so that they use log level HEADER_LEVEL and disable periodic statistics dumps to the LOG file. Please note that there is no need to also change DefaultConfigurableOptionsFactory since this is only applied after any PredefinedOptions, and there is always one - at least PredefinedOptions#DEFAULT. The problem with this file is that is will grow indefinitely until it is deleted when the job is cancelled/restarted since it lives in RocksDB's local directory. Therefore, it cannot be used for troubleshooting errors. For looking into performance, metrics are probably better in the first place. Note: Theoretically, we could even set the log level to NUM_INFO_LOG_LEVELS which even removes (most of) the headers, but although that is working, it is practically an invalid value for the log level and would be a bit hacky. This closes apache#10437
- Loading branch information