Skip to content

Conversation

@swalrus1
Copy link
Collaborator

@swalrus1 swalrus1 commented Jul 17, 2024

Messages TEvDeleteTablet and TEvRequestHiveInfo are sent from unit test to a hive throught different pipes, so they can be handled out of order. Because of that, a tablet may be recognised as alive shortly after DropTable is finished.

  • Fixed the unit test

@swalrus1 swalrus1 marked this pull request as ready for review July 17, 2024 16:13
@github-actions
Copy link

github-actions bot commented Jul 17, 2024

2024-07-17 16:14:05 UTC Pre-commit check for a4aea3b has started.
2024-07-17 16:16:26 UTC Build+Tests linux-x86_64-release-asan is running...
🟢 2024-07-17 16:22:22 UTC Build successful.
🟢 2024-07-17 16:22:38 UTC Tests successful.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
194 194 0 0 0 0

@github-actions
Copy link

github-actions bot commented Jul 17, 2024

2024-07-17 16:14:06 UTC Pre-commit check for a4aea3b has started.
2024-07-17 16:16:32 UTC Build+Tests linux-x86_64-relwithdebinfo is running...
🟢 2024-07-17 16:21:01 UTC Build successful.
🟢 2024-07-17 16:21:17 UTC Tests successful.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
194 194 0 0 0 0

@github-actions
Copy link

github-actions bot commented Jul 17, 2024

2024-07-17 16:14:15 UTC Pre-commit check for a4aea3b has started.
2024-07-17 16:16:58 UTC Build+Tests linux-x86_64-release-clang14 is running...
🟢 2024-07-17 16:20:13 UTC Build successful.

@swalrus1 swalrus1 linked an issue Jul 17, 2024 that may be closed by this pull request
UNIT_ASSERT_C(testHelper.GetKikimr().GetTestClient().TabletExistsInHive(&testHelper.GetRuntime(), tablet), ToString(tablet) + " not alive");
}
testHelper.DropTable("/Root/ColumnTableTest");
for (auto tablet: tabletIds) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а можешь как-то лаконичнее и переиспользуемее написать?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вынес ожидание в testHelper. я не нашёл других подходящих функций

@github-actions
Copy link

github-actions bot commented Jul 19, 2024

2024-07-19 11:31:40 UTC Pre-commit check for 6ff1385 has started.
2024-07-19 11:34:05 UTC Build+Tests linux-x86_64-release-asan is running...
🟢 2024-07-19 11:55:07 UTC Build successful.
🔴 2024-07-19 11:55:54 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3093 3081 0 7 1 4

@github-actions
Copy link

github-actions bot commented Jul 19, 2024

2024-07-19 10:38:19 UTC Pre-commit check for 6ff1385 has started.
2024-07-19 10:40:40 UTC Build+Tests linux-x86_64-release-clang14 is running...
🟢 2024-07-19 10:48:02 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Jul 19, 2024

2024-07-19 11:31:45 UTC Pre-commit check for 6ff1385 has started.
2024-07-19 11:34:08 UTC Build+Tests linux-x86_64-relwithdebinfo is running...
🟢 2024-07-19 11:53:28 UTC Build successful.
🔴 2024-07-19 11:54:05 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3242 3238 0 1 1 2


void TTestHelper::WaitTabletDeletionInHive(ui64 tabletId, TDuration duration) {
auto deadline = TInstant::Now() + duration;
while (GetKikimr().GetTestClient().TabletExistsInHive(&GetRuntime(), tabletId) && deadline >= TInstant::Now()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: на мой вкус было бы лучше ... && TInstant::Now() < deadline

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

согласен, поправил

@github-actions
Copy link

github-actions bot commented Jul 21, 2024

2024-07-21 11:45:13 UTC Pre-commit check for 8a86b5e has started.
2024-07-21 11:47:38 UTC Build+Tests linux-x86_64-release-clang14 is running...
🟢 2024-07-21 11:51:41 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Jul 21, 2024

2024-07-21 11:45:20 UTC Pre-commit check for 8a86b5e has started.
2024-07-21 11:47:48 UTC Build+Tests linux-x86_64-release-asan is running...
🟢 2024-07-21 12:10:04 UTC Build successful.
🔴 2024-07-21 12:10:40 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3090 3083 0 2 1 4

@github-actions
Copy link

github-actions bot commented Jul 21, 2024

2024-07-21 11:45:20 UTC Pre-commit check for 8a86b5e has started.
2024-07-21 11:47:42 UTC Build+Tests linux-x86_64-relwithdebinfo is running...
🟢 2024-07-21 12:06:21 UTC Build successful.
🔴 2024-07-21 12:07:02 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3240 3235 0 2 1 2

@swalrus1 swalrus1 merged commit 298b189 into ydb-platform:main Jul 22, 2024
zverevgeny pushed a commit to zverevgeny/ydb that referenced this pull request Sep 9, 2024
zverevgeny pushed a commit to zverevgeny/ydb that referenced this pull request Sep 10, 2024
zverevgeny pushed a commit to zverevgeny/ydb that referenced this pull request Sep 11, 2024
zverevgeny pushed a commit to zverevgeny/ydb that referenced this pull request Sep 12, 2024
zverevgeny pushed a commit to zverevgeny/ydb that referenced this pull request Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky KqpOlapScheme.DropTable

3 participants