]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
set ignore_unknown_options when parsing options (#13443) v10.0.1
authorJay Huh <jewoongh@meta.com>
Fri, 7 Mar 2025 01:26:37 +0000 (17:26 -0800)
committeranand76 <anand1976@users.noreply.github.com>
Fri, 7 Mar 2025 01:32:20 +0000 (17:32 -0800)
Summary:
In case the primary host has a new option added which isn't available in the remote worker yet, the remote compaction currently fails. In most cases, these new options are not relevant to the remote compaction and the worker should be able to move on by ignoring it.

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

Test Plan: Verified internally in Meta Infra.

Reviewed By: anand1976

Differential Revision: D70744359

Pulled By: jaykorean

fbshipit-source-id: eb6a388c2358a7f8089f2e35a378b7017b9e03f3

db/db_impl/db_impl_secondary.cc

index a9082db3b42fe39311ee63ffe42558a3a36ba427..b58d63e52606f611b19697ff96596c10faf8c7fc 100644 (file)
@@ -994,6 +994,7 @@ Status DB::OpenAndCompact(
   DBOptions db_options;
   ConfigOptions config_options;
   config_options.env = override_options.env;
+  config_options.ignore_unknown_options = true;
   std::vector<ColumnFamilyDescriptor> all_column_families;
 
   TEST_SYNC_POINT_CALLBACK(