@@ -87,7 +87,6 @@ def __init__(self, node_id, config_path, port_allocator, cluster_name, configura
8787 }
8888
8989 daemon .Daemon .__init__ (self , self .command , cwd = self .cwd , timeout = 180 , stderr_on_error_lines = 240 , ** kwargs )
90- self .__binary_path = None
9190
9291 @property
9392 def cwd (self ):
@@ -107,9 +106,7 @@ def cwd(self):
107106
108107 @property
109108 def binary_path (self ):
110- if self .__binary_path :
111- return self .__binary_path
112- return self .__configurator .binary_path
109+ return self .__binary_path
113110
114111 @property
115112 def command (self ):
@@ -272,7 +269,8 @@ def server(self):
272269
273270 def __call_kikimr_new_cli (self , cmd , connect_to_server = True ):
274271 server = 'grpc://{server}:{port}' .format (server = self .server , port = self .nodes [1 ].port )
275- full_command = [self .__configurator .binary_path ]
272+ binary_path = self .__configurator .get_binary_path (0 )
273+ full_command = [binary_path ]
276274 if connect_to_server :
277275 full_command += ["--server={server}" .format (server = server )]
278276 full_command += cmd
@@ -372,6 +370,7 @@ def __register_node(self):
372370 configurator = self .__configurator ,
373371 udfs_dir = self .__common_udfs_dir ,
374372 tenant_affiliation = self .__configurator .yq_tenant ,
373+ binary_path = self .__configurator .get_binary_path (node_index ),
375374 data_center = data_center ,
376375 )
377376 return self ._nodes [node_index ]
@@ -402,6 +401,7 @@ def __register_slot(self, tenant_affiliation=None, encryption_key=None):
402401 node_broker_port = node_broker_port ,
403402 tenant_affiliation = tenant_affiliation if tenant_affiliation is not None else 'dynamic' ,
404403 encryption_key = encryption_key ,
404+ binary_path = self .__configurator .get_binary_path (slot_index ),
405405 )
406406 return self ._slots [slot_index ]
407407
0 commit comments