aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorazevaykin <145343289+azevaykin@users.noreply.github.com>2025-07-30 16:26:20 +0300
committerGitHub <noreply@github.com>2025-07-30 16:26:20 +0300
commit6c457df55c5b966c3bdaca3c646c33c3c70691f8 (patch)
treef35f34818145850e27356adc0c7859472c7f20ca
parent8e06df198ce58df7692864eb3ceca3863936bb66 (diff)
downloadydb-6c457df55c5b966c3bdaca3c646c33c3c70691f8.tar.gz
Remove check_statistics from test (#21964)
-rw-r--r--ydb/tests/compatibility/test_followers.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/ydb/tests/compatibility/test_followers.py b/ydb/tests/compatibility/test_followers.py
index 05eee1a4b1c..1298d4c904f 100644
--- a/ydb/tests/compatibility/test_followers.py
+++ b/ydb/tests/compatibility/test_followers.py
@@ -195,28 +195,6 @@ class TestSecondaryIndexFollowers(RollingUpgradeAndDowngradeFixture):
with ydb.QuerySessionPool(self.driver) as session_pool:
session_pool.retry_operation_sync(operation)
- def check_statistics(self, enable_followers):
- queries = [
- f"""
- SELECT *
- FROM `/Root/.sys/partition_stats`
- WHERE
- FollowerId {"!=" if enable_followers else "=="} 0
- AND (RowReads != 0 OR RangeReads != 0)
- AND Path = '/Root/{self.TABLE_NAME}/{self.INDEX_NAME}/indexImplTable'
- """
- ]
-
- with ydb.QuerySessionPool(self.driver) as session_pool:
- for _ in range(self.ATTEMPT_COUNT):
- for query in queries:
- result_sets = session_pool.execute_with_retries(query)
- result_row_count = len(result_sets[0].rows)
- if result_row_count > 0:
- return
- time.sleep(self.ATTEMPT_INTERVAL)
- assert False, f"Expected reads but there is timeout waiting for read stats from '/Root/{self.TABLE_NAME}/{self.INDEX_NAME}/indexImplTable'"
-
@pytest.mark.parametrize("enable_followers", [True, False])
def test_secondary_index_followers(self, enable_followers):
self.create_table(enable_followers)
@@ -224,4 +202,3 @@ class TestSecondaryIndexFollowers(RollingUpgradeAndDowngradeFixture):
for _ in self.roll():
self.write_data()
self.read_data()
- self.check_statistics(enable_followers)