diff options
author | ijon <ijon@yandex-team.com> | 2023-01-27 12:13:26 +0300 |
---|---|---|
committer | ijon <ijon@yandex-team.com> | 2023-01-27 12:13:26 +0300 |
commit | 34ad4af63aa27ef8dfdfcd393152b46e31383986 (patch) | |
tree | 1e395a7d93e382a9fca2bac79f9209031cb4cb74 | |
parent | 9c98c7691d3bce195fb06c49997951bfa855deb3 (diff) | |
download | ydb-34ad4af63aa27ef8dfdfcd393152b46e31383986.tar.gz |
schemeshard: fix TSchemeShardAllocatePQRebootTest::AllocateWithReboots test
Update expected data and remove unnecessary wait
-rw-r--r-- | ydb/core/tx/schemeshard/ut_allocate_pq.cpp | 1 | ||||
-rw-r--r-- | ydb/core/tx/schemeshard/ut_allocate_reboot_pq.cpp | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ydb/core/tx/schemeshard/ut_allocate_pq.cpp b/ydb/core/tx/schemeshard/ut_allocate_pq.cpp index 5fa6d478226..2e63c43d5c2 100644 --- a/ydb/core/tx/schemeshard/ut_allocate_pq.cpp +++ b/ydb/core/tx/schemeshard/ut_allocate_pq.cpp @@ -101,6 +101,7 @@ Y_UNIT_TEST_SUITE(TSchemeShardAllocatePQTest) { TestDeallocatePQ(runtime, ++txId, "/MyRoot/DirA", "Name: \"PQGroup\""); env.TestWaitNotification(runtime, txId); + // there are nothing to wait: operation DeallocatePersQueueGroup does not delete any tablets/shards //env.TestWaitShardDeletion(runtime, {1, 2, 3, 4}); TestDescribeResult(DescribePath(runtime, "/MyRoot/DirA/PQGroup", true), diff --git a/ydb/core/tx/schemeshard/ut_allocate_reboot_pq.cpp b/ydb/core/tx/schemeshard/ut_allocate_reboot_pq.cpp index 9f3df2c99a6..ea52dca369f 100644 --- a/ydb/core/tx/schemeshard/ut_allocate_reboot_pq.cpp +++ b/ydb/core/tx/schemeshard/ut_allocate_reboot_pq.cpp @@ -97,10 +97,11 @@ Y_UNIT_TEST_SUITE(TSchemeShardAllocatePQRebootTest) { auto balancerDescr = GetDescribeFromPQBalancer(runtime, 9437195); Cerr << balancerDescr.ShortUtf8DebugString(); - TString expected = R"(TopicName: "PQGroup" Version: 1 Config { PartitionConfig { LifetimeSeconds: 10 } YdbDatabasePath: "/MyRoot/Database" } PartitionPerTablet: 10 Partitions { Partition: 0 TabletId: 9437194 } Partitions { Partition: 1 TabletId: 9437194 } Partitions { Partition: 2 TabletId: 9437194 } Partitions { Partition: 3 TabletId: 9437194 } Partitions { Partition: 4 TabletId: 9437194 } Partitions { Partition: 5 TabletId: 9437194 } Partitions { Partition: 6 TabletId: 9437194 } Partitions { Partition: 7 TabletId: 9437194 } Partitions { Partition: 8 TabletId: 9437194 } Partitions { Partition: 9 TabletId: 9437194 } SchemeShardId: 9437198 BalancerTabletId: 9437195 SecurityObject: "\022\000")"; + TString expected = R"(TopicName: "PQGroup" Version: 2 Config { PartitionConfig { LifetimeSeconds: 10 } YdbDatabasePath: "/MyRoot/Database" } PartitionPerTablet: 10 Partitions { Partition: 0 TabletId: 9437194 } Partitions { Partition: 1 TabletId: 9437194 } Partitions { Partition: 2 TabletId: 9437194 } Partitions { Partition: 3 TabletId: 9437194 } Partitions { Partition: 4 TabletId: 9437194 } Partitions { Partition: 5 TabletId: 9437194 } Partitions { Partition: 6 TabletId: 9437194 } Partitions { Partition: 7 TabletId: 9437194 } Partitions { Partition: 8 TabletId: 9437194 } Partitions { Partition: 9 TabletId: 9437194 } SchemeShardId: 9437196 BalancerTabletId: 9437195 SecurityObject: "\022\000")"; UNIT_ASSERT_NO_DIFF(expected, balancerDescr.ShortUtf8DebugString()); - t.TestEnv->TestWaitShardDeletion(runtime, {1}); + // there are nothing to wait: operation DeallocatePersQueueGroup does not delete any tablets/shards + // t.TestEnv->TestWaitShardDeletion(runtime, {1}); } }); } |