diff options
| author | dcherednik <[email protected]> | 2023-02-14 14:26:43 +0300 | 
|---|---|---|
| committer | dcherednik <[email protected]> | 2023-02-14 14:26:43 +0300 | 
| commit | a9759cfaa2afbd284f0744d8ebafbe844baa8b1e (patch) | |
| tree | 5b2a892f4e7c99d04df7fb9b54c005b50dc8e714 | |
| parent | 5ee77aff780ab0422989004ab7fa55f638968908 (diff) | |
Enable move index as default settings.
| -rw-r--r-- | ydb/core/protos/config.proto | 2 | ||||
| -rw-r--r-- | ydb/core/tx/schemeshard/schemeshard_impl.h | 2 | ||||
| -rw-r--r-- | ydb/core/tx/schemeshard/ut_move.cpp | 2 | 
3 files changed, 4 insertions, 2 deletions
diff --git a/ydb/core/protos/config.proto b/ydb/core/protos/config.proto index a353f50fc6b..89872c4accd 100644 --- a/ydb/core/protos/config.proto +++ b/ydb/core/protos/config.proto @@ -747,7 +747,7 @@ message TFeatureFlags {      optional bool EnableKqpScanQueryMultipleOlapShardsReads = 67 [default = false];      optional bool EnablePredicateExtractForDataQueries = 68 [default = true];      reserved 69; // optional bool EnableKqpPatternCacheLiteral = 69 [default = false]; -    optional bool EnableMoveIndex = 70 [default = false]; +    optional bool EnableMoveIndex = 70 [default = true];      // enable http handle for self termination      optional bool EnableFailureInjectionTermination = 71 [default = false];      optional bool EnableChunkLocking = 72 [default = false]; diff --git a/ydb/core/tx/schemeshard/schemeshard_impl.h b/ydb/core/tx/schemeshard/schemeshard_impl.h index 4b98be5fdef..a1d9d959aff 100644 --- a/ydb/core/tx/schemeshard/schemeshard_impl.h +++ b/ydb/core/tx/schemeshard/schemeshard_impl.h @@ -257,7 +257,7 @@ public:      bool EnableBackgroundCompaction = false;      bool EnableBackgroundCompactionServerless = false;      bool EnableBorrowedSplitCompaction = false; -    bool EnableMoveIndex = false; +    bool EnableMoveIndex = true;      bool EnableAlterDatabaseCreateHiveFirst = false;      TShardDeleter ShardDeleter; diff --git a/ydb/core/tx/schemeshard/ut_move.cpp b/ydb/core/tx/schemeshard/ut_move.cpp index 812877f90ae..664cef4135e 100644 --- a/ydb/core/tx/schemeshard/ut_move.cpp +++ b/ydb/core/tx/schemeshard/ut_move.cpp @@ -804,6 +804,8 @@ Y_UNIT_TEST_SUITE(TSchemeShardMoveTest) {                              NLs::CheckColumns("Table", {"key", "value0", "value1", "valueFloat"}, {}, {"key"}),                              NLs::IndexesCount(2)}); +        SetEnableMoveIndex(runtime, env, TTestTxConfig::SchemeShard, false); +          TestMoveIndex(runtime, ++txId, "/MyRoot/Table", "Sync", "MovedSync", false, {NKikimrScheme::StatusPreconditionFailed});          env.TestWaitNotification(runtime, txId);  | 
