summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInnokentii Mokin <[email protected]>2024-07-25 21:26:45 +0300
committerGitHub <[email protected]>2024-07-25 21:26:45 +0300
commit34b6297ca07eb024fa4c01d88da66e362deae3a5 (patch)
tree7006fee5ec326fa31c4d95b988a50a1057b8085d
parent4a621d87349e697d5e5c38f2c8b8bafe87d78d2a (diff)
Do not treat incr backup tables as async replicas (#7109)
-rw-r--r--.github/config/muted_ya.txt1
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_path.cpp6
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();