SERVER-112897 Make featureFlagReshardingSkipCloningIfApplicable default to true (#43356)

GitOrigin-RevId: 82353cd53152211a4d16ba590cba2f0dd7bb06c3
This commit is contained in:
Randolph Tan 2025-10-31 15:17:54 -04:00 committed by MongoDB Bot
parent 4ebff481ea
commit 6732021dce
2 changed files with 6 additions and 1 deletions

View File

@ -970,6 +970,8 @@ TEST_F(
ProcessRecipientFieldsWhenShardDoesNotOwnAnyChunks_PrimaryShard_SkipCloningAndApplyIfApplicable) {
RAIIServerParameterControllerForTest skipCloningAndApplyingFeatureFlagController(
"featureFlagReshardingSkipCloningAndApplyingIfApplicable", true);
RAIIServerParameterControllerForTest skipCloningFeatureFlagController(
"featureFlagReshardingSkipCloningIfApplicable", false);
testProcessRecipientFields(kOtherShard.getShardId() /* shardThatChunkExistsOn*/,
kThisShard.getShardId() /* primaryShard */,
@ -983,6 +985,8 @@ TEST_F(
ProcessRecipientFieldsWhenShardDoesNotOwnAnyChunks_PrimaryShard_NotSkipCloningAndApplyIfApplicable) {
RAIIServerParameterControllerForTest skipCloningAndApplyingFeatureFlagController(
"featureFlagReshardingSkipCloningAndApplyingIfApplicable", false);
RAIIServerParameterControllerForTest skipCloningFeatureFlagController(
"featureFlagReshardingSkipCloningIfApplicable", false);
testProcessRecipientFields(kOtherShard.getShardId() /* shardThatChunkExistsOn*/,
kThisShard.getShardId() /* primaryShard */,

View File

@ -79,7 +79,8 @@ feature_flags:
can be such a recipient shard. This flag is ignored if
featureFlagReshardingSkipCloningAndApplyingIfApplicable is set to true."
cpp_varname: gFeatureFlagReshardingSkipCloningIfApplicable
default: false
default: true
version: 8.0
fcv_gated: true
featureFlagReshardingStoreOplogFetcherProgress:
description: