Skip to content

[SchemeShard] Consistent Copy Tables hangs on simple test with reboots #18999

@Enjection

Description

@Enjection
Y_UNIT_TEST_SUITE(TIncrementalRestoreTestsWithReboots) {
    Y_UNIT_TEST_WITH_REBOOTS(CopyTableChangeStateSupport) {
        TTestWithReboots t(true);
        t.Run([&](TTestActorRuntime& runtime, bool& activeZone) {
            {
                TInactiveZone inactive(activeZone);
                TestCreateTable(runtime, ++t.TxId, "/MyRoot",
                                            R"(
                                            Name: "src1"
                                            Columns { Name: "key"   Type: "Uint64" }
                                            Columns { Name: "value0" Type: "Utf8" }
                                            KeyColumnNames: ["key"]
                                            )"),

                t.TestEnv->TestWaitNotification(runtime, t.TxId);
            }

            TestConsistentCopyTables(runtime, ++t.TxId, "/", R"(
                        CopyTableDescriptions {
                            SrcPath: "/MyRoot/src1"
                            DstPath: "/MyRoot/dst1"
                        }
                        )");
            t.TestEnv->TestWaitNotification(runtime, t.TxId);

            {
                TInactiveZone inactive(activeZone);
                TestDescribeResult(DescribePath(runtime, "/MyRoot/dst1"),
                                   {NLs::PathExist});
            }
        });
    }
}

Metadata

Metadata

Assignees

Labels

area/schemeshardIssues related to Scheme Shard system tablet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions