diff options
author | Олег <150132506+iddqdex@users.noreply.github.com> | 2024-11-12 13:45:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 13:45:54 +0300 |
commit | 6ed35ea072eb8a85a52af57f72f5dcc82169ca89 (patch) | |
tree | 76c442b103ca94f29b95fc8f63a05b6e2257939b | |
parent | 7be730f9f4e7bc6b72aadc471f6decd0bee0b0d6 (diff) | |
download | ydb-6ed35ea072eb8a85a52af57f72f5dcc82169ca89.tar.gz |
check tablets state on cluster life check (#11518)
-rw-r--r-- | ydb/tests/olap/lib/ydb_cluster.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ydb/tests/olap/lib/ydb_cluster.py b/ydb/tests/olap/lib/ydb_cluster.py index d9b459734d..98596fa4fc 100644 --- a/ydb/tests/olap/lib/ydb_cluster.py +++ b/ydb/tests/olap/lib/ydb_cluster.py @@ -242,6 +242,8 @@ class YdbCluster: for tn in table_nodes: tablet_count = 0 for tablet in tn.get("Tablets", []): + if tablet.get("State") != "Green": + errors.append(f'Node {tn.get("SystemState", {}).get("Host")}: {tablet.get("Count")} tablets of type {tablet.get("Type")} in {tablet.get("State")} state') if tablet.get("Type") in {"ColumnShard", "DataShard"}: tablet_count += tablet.get("Count") if min is None or tablet_count < min: |