Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test suite "TestDataMigrationWhenAlterTtl" #14420

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions ydb/tests/olap/ttl_tiering/data_migration_when_alter_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ def bucket_is_not_empty(bucket_name):

# Step 7
if not self.wait_for(
lambda: get_rows_in_portion(bucket2_path) == self.row_count and bucket_is_not_empty(self.bucket2)
# TODO: Uncomment after fix https://github.com/ydb-platform/ydb/issues/13616
# and not bucket_is_not_empty(self.bucket1)
,
lambda: get_rows_in_portion(bucket2_path) == self.row_count and bucket_is_not_empty(self.bucket2),
vlad-gogov marked this conversation as resolved.
Show resolved Hide resolved
plain_or_under_sanitizer(600, 1200),
):
raise Exception("Data eviction has not been started")
Expand All @@ -210,10 +207,14 @@ def bucket_is_not_empty(bucket_name):

# Step 9
if not self.wait_for(
lambda: get_rows_in_portion("__DEFAULT") == self.row_count
# TODO: Uncomment after fix https://github.com/ydb-platform/ydb/issues/13616
# and not bucket_is_not_empty(self.bucket1) and not bucket_is_not_empty(self.bucket2)
,
lambda: get_rows_in_portion("__DEFAULT") == self.row_count,
plain_or_under_sanitizer(600, 1200),
):
raise Exception("Data eviction has not been started")

# Wait until buckets are empty
if not self.wait_for(
lambda: not bucket_is_not_empty(self.bucket1) and not bucket_is_not_empty(self.bucket2),
plain_or_under_sanitizer(600, 1200),
):
raise Exception("Buckets are not empty")
Loading