diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2023-05-08 16:18:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 16:18:27 +0200 |
commit | 93d0034b4603aca06771f646dd814d17faf598f8 (patch) | |
tree | a4176f58e56d89aae6ab9bc9b8f39fe4fe53d85f /storage/src | |
parent | f6b1f219a909956e820bb86daea09bb28ff181f4 (diff) | |
parent | 052d284ed4654cf5c87cb52ae985073b70d7bce5 (diff) |
Merge pull request #27027 from vespa-engine/vekterli/default-enable-fast-update-restart-when-consistent
Default-enable fast path updates when document versions are consistent
Diffstat (limited to 'storage/src')
-rw-r--r-- | storage/src/tests/distributor/distributor_stripe_test.cpp | 2 | ||||
-rw-r--r-- | storage/src/vespa/storage/config/stor-distributormanager.def | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/storage/src/tests/distributor/distributor_stripe_test.cpp b/storage/src/tests/distributor/distributor_stripe_test.cpp index 2130c6ae62d..e963b505bc2 100644 --- a/storage/src/tests/distributor/distributor_stripe_test.cpp +++ b/storage/src/tests/distributor/distributor_stripe_test.cpp @@ -865,6 +865,8 @@ TEST_F(DistributorStripeTest, fast_path_on_consistent_gets_config_is_propagated_ { setup_stripe(Redundancy(1), NodeCount(1), "distributor:1 storage:1"); + EXPECT_TRUE(getConfig().update_fast_path_restart_enabled()); // Enabled by default + configure_update_fast_path_restart_enabled(true); EXPECT_TRUE(getConfig().update_fast_path_restart_enabled()); diff --git a/storage/src/vespa/storage/config/stor-distributormanager.def b/storage/src/vespa/storage/config/stor-distributormanager.def index fb0cd4f21d0..9c8469f924c 100644 --- a/storage/src/vespa/storage/config/stor-distributormanager.def +++ b/storage/src/vespa/storage/config/stor-distributormanager.def @@ -219,7 +219,8 @@ use_btree_database bool default=true restart ## content nodes, the two-phase update path reverts back to the regular fast path. ## Since all replicas of the document were in sync, applying the update in-place ## shall be considered safe. -restart_with_fast_update_path_if_all_get_timestamps_are_consistent bool default=false +## DEPRECATED -- always enabled with 3-phase updates. +restart_with_fast_update_path_if_all_get_timestamps_are_consistent bool default=true ## If set, no merge operations may be generated for any reason by a distributor. ## This is ONLY intended for system testing of certain transient edge cases and |