rocksdb/options
Jay Huh e3601c8c15 Honor ConfigOptions.ignore_unknown_options in ParseStruct() (#13152)
Summary:
`OptionTypeInfo::ParseStruct()` was not honoring `config_options.ignore_unknown_options` when unknown properties are found in the serialized string. This caused a compatibility issue in Remote Compaction. When the worker was updated with RocksDB 9.9, the remote worker started including a new table property, `newest_key_time` (added in PR https://github.com/facebook/rocksdb/issues/13083), in the compaction output files. However, parsing that table property in the serialized compaction result from the primary (running with `9.8`) was returning a non-ok status, even though `config_options.ignore_unknown_options` was `true`.

In this fix, we will ignore unused properties if `config_options.ignore_unknown_options` is set to true.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/13152

Test Plan: Unit Test Added

Reviewed By: archang19

Differential Revision: D66374541

Pulled By: jaykorean

fbshipit-source-id: 78fd8309909279390438c247c4d390bbee4fa914
2024-12-02 12:09:32 -08:00
..
cf_options.cc Steps toward preserve/preclude options mutable (#13124) 2024-11-18 19:34:01 -08:00
cf_options.h Steps toward preserve/preclude options mutable (#13124) 2024-11-18 19:34:01 -08:00
configurable.cc Fix race to make BlockBasedTableOptions effectively mutable (#13082) 2024-10-25 10:24:54 -07:00
configurable_helper.h Fix race to make BlockBasedTableOptions effectively mutable (#13082) 2024-10-25 10:24:54 -07:00
configurable_test.cc
configurable_test.h
customizable.cc
customizable_test.cc
db_options.cc
db_options.h
offpeak_time_info.cc
offpeak_time_info.h
options.cc
options_helper.cc Honor ConfigOptions.ignore_unknown_options in ParseStruct() (#13152) 2024-12-02 12:09:32 -08:00
options_helper.h
options_parser.cc Fix missing cases of corruption retries (#13122) 2024-11-08 12:43:21 -08:00
options_parser.h
options_settable_test.cc Record newest_key_time as a table property (#13083) 2024-11-01 10:08:35 -07:00
options_test.cc Honor ConfigOptions.ignore_unknown_options in ParseStruct() (#13152) 2024-12-02 12:09:32 -08:00