You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errors.append(f'Node {tn.get("SystemState", {}).get("Host")}: {tablet.get("Count")} tablets of type {tablet.get("Type")} in {tablet.get("State")} state')
238
-
iftablet.get("Type") in {"ColumnShard", "DataShard"}:
239
-
tablet_count+=tablet.get("Count")
240
-
iftablet_count>0:
241
-
ifminisNoneortablet_count<min:
242
-
min=tablet_count
243
-
ifmaxisNoneortablet_count>max:
244
-
max=tablet_count
245
-
ifminisNoneormaxisNone:
246
-
errors.append(f'Table {p} has no tablets')
247
-
elifmax-min>1:
248
-
errors.append(f'Table {p} is not balanced: {min}-{max} shards.')
warnings.append(f'Node {tn.get("SystemState", {}).get("Host")}: {tablet.get("Count")} tablets of type {tablet.get("Type")} in {tablet.get("State")} state')
238
+
iftablet.get("Type") in {"ColumnShard", "DataShard"}:
239
+
tablet_count+=tablet.get("Count")
240
+
iftablet_count>0:
241
+
ifminisNoneortablet_count<min:
242
+
min=tablet_count
243
+
ifmaxisNoneortablet_count>max:
244
+
max=tablet_count
245
+
ifminisNoneormaxisNone:
246
+
warnings.append(f'Table {p} has no tablets')
247
+
elifmax-min>1:
248
+
warnings.append(f'Table {p} is not balanced: {min}-{max} shards.')
0 commit comments