Skip to content

Commit 6ed35ea

Browse files
authored
check tablets state on cluster life check (#11518)
1 parent 7be730f commit 6ed35ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/tests/olap/lib/ydb_cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def _check_node(n):
242242
for tn in table_nodes:
243243
tablet_count = 0
244244
for tablet in tn.get("Tablets", []):
245+
if tablet.get("State") != "Green":
246+
errors.append(f'Node {tn.get("SystemState", {}).get("Host")}: {tablet.get("Count")} tablets of type {tablet.get("Type")} in {tablet.get("State")} state')
245247
if tablet.get("Type") in {"ColumnShard", "DataShard"}:
246248
tablet_count += tablet.get("Count")
247249
if min is None or tablet_count < min:

0 commit comments

Comments
 (0)