diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-05-08 12:53:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 12:53:11 +0200 |
commit | 2558a5be5bbcddd4200af59ad4a3095b7e759668 (patch) | |
tree | 4957eae0d22a1040f7ba350c6f47bc9c428d82c3 /storage/src/tests/distributor | |
parent | 0bb9d136c30602ce61539ed9cfb5be0777e4b1c6 (diff) | |
parent | cdd8a811a50cced472ed639fa3c907e2c03a6432 (diff) |
Merge pull request #27015 from vespa-engine/vekterli/add-and-wire-condition-probe-config
Add and wire in condition probing configuration
Diffstat (limited to 'storage/src/tests/distributor')
-rw-r--r-- | storage/src/tests/distributor/distributor_stripe_test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/storage/src/tests/distributor/distributor_stripe_test.cpp b/storage/src/tests/distributor/distributor_stripe_test.cpp index 73ff0f22614..2130c6ae62d 100644 --- a/storage/src/tests/distributor/distributor_stripe_test.cpp +++ b/storage/src/tests/distributor/distributor_stripe_test.cpp @@ -197,6 +197,12 @@ struct DistributorStripeTest : Test, DistributorStripeTestUtil { configure_stripe(builder); } + void configure_enable_condition_probing(bool enable_probing) { + ConfigBuilder builder; + builder.enableConditionProbing = enable_probing; + configure_stripe(builder); + } + bool scheduler_has_implicitly_clear_priority_on_schedule_set() const noexcept { return _stripe->_scheduler->implicitly_clear_priority_on_schedule(); } @@ -1031,4 +1037,17 @@ TEST_F(DistributorStripeTest, enable_two_phase_gc_config_is_propagated_to_intern EXPECT_FALSE(getConfig().enable_two_phase_garbage_collection()); } +TEST_F(DistributorStripeTest, enable_condition_probing_config_is_propagated_to_internal_config) +{ + setup_stripe(Redundancy(1), NodeCount(1), "distributor:1 storage:1"); + + EXPECT_FALSE(getConfig().enable_condition_probing()); + + configure_enable_condition_probing(true); + EXPECT_TRUE(getConfig().enable_condition_probing()); + + configure_enable_condition_probing(false); + EXPECT_FALSE(getConfig().enable_condition_probing()); +} + } |