File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ def _get_service_url(cls):
55
55
@classmethod
56
56
def get_cluster_nodes (cls , path = None ):
57
57
try :
58
- url = f'{ cls ._get_service_url ()} /viewer/json/nodes?'
58
+ url = f'{ cls ._get_service_url ()} /viewer/json/nodes?database= { cls . ydb_database } '
59
59
if path is not None :
60
- url += f'path={ path } &tablets=true'
60
+ url += f'& path={ path } &tablets=true'
61
61
headers = {}
62
62
# token = os.getenv('OLAP_YDB_OAUTH', None)
63
63
# if token is not None:
@@ -250,7 +250,9 @@ def _check_node(n):
250
250
min = tablet_count
251
251
if max is None or tablet_count > max :
252
252
max = tablet_count
253
- if min is not None and max - min > 1 :
253
+ if min is None or max is None :
254
+ errors .append (f'Table { p } has no tablets' )
255
+ elif max - min > 1 :
254
256
errors .append (f'Table { p } is not balanced: { min } -{ max } shards.' )
255
257
LOGGER .info (f'Table { p } is balanced: { min } -{ max } shards.' )
256
258
You can’t perform that action at this time.
0 commit comments