aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxyliganSereja <matva0509@gmail.com>2025-05-28 19:39:11 +0300
committerGitHub <noreply@github.com>2025-05-28 19:39:11 +0300
commitca6163f75f13636f996e1bd829a0cf7aa68459f5 (patch)
treef2297cec2c4499360bc5b799b0fefd94918ca9c5
parentc7a6d988585495e5f3ff2a6388dc59bad83cad5f (diff)
downloadydb-ca6163f75f13636f996e1bd829a0cf7aa68459f5.tar.gz
fixed a bug with quota limitation and unmute tests #16948 (#18956)
-rw-r--r--.github/config/muted_ya.txt5
-rw-r--r--ydb/tests/olap/data_quotas/test_quota_exhaustion.py21
2 files changed, 14 insertions, 12 deletions
diff --git a/.github/config/muted_ya.txt b/.github/config/muted_ya.txt
index 1b6a2ae92c5..79bec136f5c 100644
--- a/.github/config/muted_ya.txt
+++ b/.github/config/muted_ya.txt
@@ -166,9 +166,6 @@ ydb/tests/olap [*/*] chunk chunk
ydb/tests/olap sole chunk chunk
ydb/tests/olap test_log_scenario.py.TestLogScenario.test_log_deviation[1051200]
ydb/tests/olap test_log_scenario.py.TestLogScenario.test_log_deviation[180]
-ydb/tests/olap/data_quotas [*/*] chunk chunk
-ydb/tests/olap/data_quotas test_quota_exhaustion.py.TestYdbWorkload.test
-ydb/tests/olap/data_quotas test_quota_exhaustion.py.TestYdbWorkload.test_duplicates
ydb/tests/olap/scenario sole chunk chunk
ydb/tests/olap/scenario test_alter_compression.py.TestAlterCompression.test[alter_compression]
ydb/tests/olap/scenario test_alter_tiering.py.TestAlterTiering.test[many_tables]
@@ -414,4 +411,4 @@ ydb/tests/postgres_integrations/go-libpq docker_wrapper_test.py.test_pg_generate
ydb/tests/sql/large sole chunk chunk
ydb/tests/stress/log/tests test_workload.py.TestYdbLogWorkload.test[column]
ydb/tests/stress/mixedpy test_mixed.py.TestYdbMixedWorkload.test[column]
-ydb/tools/stress_tool/ut TDeviceTestTool.PDiskTestLogWrite
+ydb/tools/stress_tool/ut TDeviceTestTool.PDiskTestLogWrite \ No newline at end of file
diff --git a/ydb/tests/olap/data_quotas/test_quota_exhaustion.py b/ydb/tests/olap/data_quotas/test_quota_exhaustion.py
index 2a1dbaef46a..c674a259447 100644
--- a/ydb/tests/olap/data_quotas/test_quota_exhaustion.py
+++ b/ydb/tests/olap/data_quotas/test_quota_exhaustion.py
@@ -90,20 +90,25 @@ class TestYdbWorkload(object):
@link_test_case("#13529")
def test(self):
"""As per https://github.com/ydb-platform/ydb/issues/13529"""
- self.database_name = '/Root'
+ self.database_name = os.path.join('/Root', 'test')
+ self.cluster.create_database(
+ self.database_name,
+ storage_pool_units_count={
+ 'hdd': 1
+ },
+ )
+ self.cluster.register_and_start_slots(self.database_name, count=1)
+ self.cluster.wait_tenant_up(self.database_name)
+ self.alter_database_quotas(self.cluster.nodes[1], self.database_name, """
+ data_size_hard_quota: 40000000
+ data_size_soft_quota: 40000000
+ """)
session = self.make_session()
# Overflow the database
self.create_test_table(session, 'huge')
self.upsert_until_overload(lambda i: self.upsert_test_chunk(session, 'huge', i, retries=0))
- # Cleanup
- session.execute_with_retries("""DROP TABLE huge""")
-
- # Check database health after cleanup
- self.create_test_table(session, 'small')
- self.upsert_test_chunk(session, 'small', 0)
-
def delete_test_chunk(self, session, table, chunk_id, retries=10):
session.execute_with_retries(f"""
DELETE FROM `{table}`