From 34b6297ca07eb024fa4c01d88da66e362deae3a5 Mon Sep 17 00:00:00 2001 From: Innokentii Mokin Date: Thu, 25 Jul 2024 21:26:45 +0300 Subject: Do not treat incr backup tables as async replicas (#7109) --- .github/config/muted_ya.txt | 1 - ydb/core/tx/schemeshard/schemeshard_path.cpp | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/config/muted_ya.txt b/.github/config/muted_ya.txt index 0dcf12004f6..564ce47967f 100644 --- a/.github/config/muted_ya.txt +++ b/.github/config/muted_ya.txt @@ -42,7 +42,6 @@ ydb/core/persqueue/ut/ut_with_sdk TopicAutoscaling.ReadingAfterSplitTest_Prefere ydb/core/persqueue/ut/ut_with_sdk [*/*]* ydb/core/tx/coordinator/ut Coordinator.RestoreTenantConfiguration ydb/core/tx/datashard/ut_change_exchange Cdc.InitialScanDebezium -ydb/core/tx/datashard/ut_incremental_backup IncrementalBackup.BackupRestore ydb/core/tx/schemeshard/ut_restore TImportTests.ShouldSucceedOnManyTables ydb/core/tx/schemeshard/ut_split_merge TSchemeShardSplitBySizeTest.Merge1KShards ydb/core/tx/tx_proxy/ut_ext_tenant TExtSubDomainTest.CreateTableInsideAndAlterDomainAndTable-AlterDatabaseCreateHiveFirst* diff --git a/ydb/core/tx/schemeshard/schemeshard_path.cpp b/ydb/core/tx/schemeshard/schemeshard_path.cpp index 29d3a32ec87..769db564fa1 100644 --- a/ydb/core/tx/schemeshard/schemeshard_path.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_path.cpp @@ -391,6 +391,11 @@ const TPath::TChecker& TPath::TChecker::NotAsyncReplicaTable(EStatus status) con return *this; } + // do not treat incr backup tables as async replica + if (Path->IsIncrementalBackupTable()) { + return *this; + } + return Fail(status, TStringBuilder() << "path is an async replica table" << " (" << BasicPathInfo(Path.Base()) << ")"); } @@ -1633,7 +1638,6 @@ bool TPath::IsAsyncReplicaTable() const { return false; } - TPathElement::TPtr path = SS->PathsById.at(Base()->PathId); TTableInfo::TCPtr tableInfo = SS->Tables.at(Base()->PathId); return tableInfo->IsAsyncReplica(); -- cgit v1.3