diff --git a/src/Coordination/KeeperContext.cpp b/src/Coordination/KeeperContext.cpp index 167f40bc991..bec5f32c4d0 100644 --- a/src/Coordination/KeeperContext.cpp +++ b/src/Coordination/KeeperContext.cpp @@ -47,6 +47,8 @@ KeeperContext::KeeperContext(bool standalone_keeper_, CoordinationSettingsPtr co /// enable by default some feature flags feature_flags.enableFeatureFlag(KeeperFeatureFlag::FILTERED_LIST); feature_flags.enableFeatureFlag(KeeperFeatureFlag::MULTI_READ); + feature_flags.enableFeatureFlag(KeeperFeatureFlag::CHECK_NOT_EXISTS); + feature_flags.enableFeatureFlag(KeeperFeatureFlag::CREATE_IF_NOT_EXISTS); system_nodes_with_data[keeper_api_feature_flags_path] = feature_flags.getFeatureFlags(); /// for older clients, the default is equivalent to WITH_MULTI_READ version diff --git a/src/Coordination/tests/gtest_coordination.cpp b/src/Coordination/tests/gtest_coordination.cpp index 4cd0eaa8657..874715e2db7 100644 --- a/src/Coordination/tests/gtest_coordination.cpp +++ b/src/Coordination/tests/gtest_coordination.cpp @@ -3194,8 +3194,6 @@ TYPED_TEST(CoordinationTest, TestFeatureFlags) feature_flags.setFeatureFlags(get_response.data); ASSERT_TRUE(feature_flags.isEnabled(KeeperFeatureFlag::FILTERED_LIST)); ASSERT_TRUE(feature_flags.isEnabled(KeeperFeatureFlag::MULTI_READ)); - ASSERT_FALSE(feature_flags.isEnabled(KeeperFeatureFlag::CHECK_NOT_EXISTS)); - ASSERT_FALSE(feature_flags.isEnabled(KeeperFeatureFlag::CREATE_IF_NOT_EXISTS)); ASSERT_FALSE(feature_flags.isEnabled(KeeperFeatureFlag::REMOVE_RECURSIVE)); } diff --git a/tests/integration/test_keeper_feature_flags_config/test.py b/tests/integration/test_keeper_feature_flags_config/test.py index c5817736e87..52ff8ab3163 100644 --- a/tests/integration/test_keeper_feature_flags_config/test.py +++ b/tests/integration/test_keeper_feature_flags_config/test.py @@ -83,7 +83,12 @@ def test_keeper_feature_flags(started_cluster): assert f"{feature}\t{1 if is_enabled else 0}" in res assert_feature_flags( - [("filtered_list", 1), ("multi_read", 1), ("check_not_exists", 0)] + [ + ("filtered_list", 1), + ("multi_read", 1), + ("check_not_exists", 1), + ("create_if_not_exists", 1), + ] ) feature_flags = [