@@ -93,10 +93,11 @@ class TYdbSetup::TImpl {
93
93
94
94
runtime.SetLogPriority (service, NActors::NLog::EPriority (setting.GetLevel ()));
95
95
}
96
+
97
+ runtime.SetLogBackendFactory ([this ]() { return CreateLogBackend (); });
96
98
};
97
99
98
100
serverSettings.SetLoggerInitializer (loggerInitializer);
99
- serverSettings.SetLogBackend (CreateLogBackend ());
100
101
}
101
102
102
103
void SetFunctionRegistry (NKikimr::Tests::TServerSettings& serverSettings) const {
@@ -244,12 +245,13 @@ class TYdbSetup::TImpl {
244
245
NKikimr::NKqp::TEvFetchScriptResultsResponse::TPtr FetchScriptExecutionResultsRequest (const TString& operation, i32 resultSetId) const {
245
246
TString executionId = *NKikimr::NKqp::ScriptExecutionIdFromOperation (operation);
246
247
247
- NActors::TActorId edgeActor = GetRuntime ()->AllocateEdgeActor ();
248
+ ui32 nodeIndex = RandomNumber (Settings_.NodeCount );
249
+ NActors::TActorId edgeActor = GetRuntime ()->AllocateEdgeActor (nodeIndex);
248
250
auto rowsLimit = Settings_.AppConfig .GetQueryServiceConfig ().GetScriptResultRowsLimit ();
249
251
auto sizeLimit = Settings_.AppConfig .GetQueryServiceConfig ().GetScriptResultSizeLimit ();
250
252
NActors::IActor* fetchActor = NKikimr::NKqp::CreateGetScriptExecutionResultActor (edgeActor, Settings_.DomainName , executionId, resultSetId, 0 , rowsLimit, sizeLimit, TInstant::Max ());
251
253
252
- GetRuntime ()->Register (fetchActor, RandomNumber (Settings_. NodeCount ) );
254
+ GetRuntime ()->Register (fetchActor, nodeIndex );
253
255
254
256
return GetRuntime ()->GrabEdgeEvent <NKikimr::NKqp::TEvFetchScriptResultsResponse>(edgeActor);
255
257
}
@@ -303,10 +305,11 @@ class TYdbSetup::TImpl {
303
305
304
306
template <typename TRequest, typename TResponse>
305
307
typename TResponse::TPtr RunKqpProxyRequest (THolder<TRequest> event) const {
306
- NActors::TActorId edgeActor = GetRuntime ()->AllocateEdgeActor ();
307
- NActors::TActorId kqpProxy = NKikimr::NKqp::MakeKqpProxyID (GetRuntime ()->GetNodeId (RandomNumber (Settings_.NodeCount )));
308
+ ui32 nodeIndex = RandomNumber (Settings_.NodeCount );
309
+ NActors::TActorId edgeActor = GetRuntime ()->AllocateEdgeActor (nodeIndex);
310
+ NActors::TActorId kqpProxy = NKikimr::NKqp::MakeKqpProxyID (GetRuntime ()->GetNodeId (nodeIndex));
308
311
309
- GetRuntime ()->Send (kqpProxy, edgeActor, event.Release ());
312
+ GetRuntime ()->Send (kqpProxy, edgeActor, event.Release (), nodeIndex );
310
313
311
314
return GetRuntime ()->GrabEdgeEvent <TResponse>(edgeActor);
312
315
}
0 commit comments