From 70fe55f1f04a56e5fbb9652a1d715845cf5b6025 Mon Sep 17 00:00:00 2001 From: kunkunblueberry <1833921874@qq.com> Date: Sat, 17 Oct 2026 20:43:01 +0800 Subject: [PATCH] [Bugfix] Pass a lease policy from the BatchProbe DSL step #4314 changed MasterService::BatchProbeKey to take a GrantLeasePolicy, but the MasterScenario DSL kept calling the two-argument form, so master_service_test_dsl no longer compiles and every PR's CTest job fails while building the tests. Pass GrantLeasePolicy{} (lease_mode None), which the implementation maps to the lease-free existence probe the DSL step relied on before, so the scenario behavior is unchanged. --- mooncake-store/tests/master_service/dsl/scenario.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mooncake-store/tests/master_service/dsl/scenario.cpp b/mooncake-store/tests/master_service/dsl/scenario.cpp index 850fa72de4..ee379ae137 100644 --- a/mooncake-store/tests/master_service/dsl/scenario.cpp +++ b/mooncake-store/tests/master_service/dsl/scenario.cpp @@ -1922,8 +1922,8 @@ MasterScenario& MasterScenario::Then(BatchProbeSpec batch_probe) { return *this; } - const auto result = - service_->BatchProbeKey(batch_probe.keys, TenantId(batch_probe.tenant)); + const auto result = service_->BatchProbeKey( + GrantLeasePolicy{}, batch_probe.keys, TenantId(batch_probe.tenant)); if (result.size() != batch_probe.expected.size()) { Fail("BatchProbe returned " + std::to_string(result.size()) + " results; expected " +