Skip to content

Commit 7b7d416

Browse files
authored
Merge 4eb393a into c72cf7b
2 parents c72cf7b + 4eb393a commit 7b7d416

File tree

11 files changed

+298
-286
lines changed

11 files changed

+298
-286
lines changed

ydb/core/testlib/actors/test_runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ namespace NActors {
174174
}
175175

176176
if (NeedMonitoring && !SingleSysEnv) {
177-
ui16 port = GetPortManager().GetPort();
177+
ui16 port = MonitoringPortOffset ? MonitoringPortOffset + nodeIndex : GetPortManager().GetPort();
178178
node->Mon.Reset(new NActors::TSyncHttpMon({
179179
.Port = port,
180180
.Threads = 10,

ydb/core/testlib/test_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ namespace Tests {
227227

228228
NKikimr::SetupChannelProfiles(app);
229229

230-
Runtime->SetupMonitoring();
230+
Runtime->SetupMonitoring(Settings->MonitoringPortOffset);
231231
Runtime->SetLogBackend(Settings->LogBackend);
232232

233233
Runtime->AddAppDataInit([this](ui32 nodeIdx, NKikimr::TAppData& appData) {

ydb/core/testlib/test_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ namespace Tests {
105105
ui16 Port;
106106
ui16 GrpcPort = 0;
107107
int GrpcMaxMessageSize = 0; // 0 - default (4_MB), -1 - no limit
108+
ui16 MonitoringPortOffset = 0;
108109
NKikimrProto::TAuthConfig AuthConfig;
109110
NKikimrPQ::TPQConfig PQConfig;
110111
NKikimrPQ::TPQClusterDiscoveryConfig PQClusterDiscoveryConfig;
@@ -157,6 +158,7 @@ namespace Tests {
157158

158159
TServerSettings& SetGrpcPort(ui16 value) { GrpcPort = value; return *this; }
159160
TServerSettings& SetGrpcMaxMessageSize(int value) { GrpcMaxMessageSize = value; return *this; }
161+
TServerSettings& SetMonitoringPortOffset(ui16 value) { MonitoringPortOffset = value; return *this; }
160162
TServerSettings& SetSupportsRedirect(bool value) { SupportsRedirect = value; return *this; }
161163
TServerSettings& SetTracePath(const TString& value) { TracePath = value; return *this; }
162164
TServerSettings& SetDomain(ui32 value) { Domain = value; return *this; }

ydb/library/actors/testlib/test_runtime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,8 +1594,9 @@ namespace NActors {
15941594
return node->DynamicCounters;
15951595
}
15961596

1597-
void TTestActorRuntimeBase::SetupMonitoring() {
1597+
void TTestActorRuntimeBase::SetupMonitoring(ui16 monitoringPortOffset) {
15981598
NeedMonitoring = true;
1599+
MonitoringPortOffset = monitoringPortOffset;
15991600
}
16001601

16011602
void TTestActorRuntimeBase::SendInternal(TAutoPtr<IEventHandle> ev, ui32 nodeIndex, bool viaActorSystem) {

ydb/library/actors/testlib/test_runtime.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ namespace NActors {
295295
void EnableScheduleForActor(const TActorId& actorId, bool allow = true);
296296
bool IsScheduleForActorEnabled(const TActorId& actorId) const;
297297
TIntrusivePtr<NMonitoring::TDynamicCounters> GetDynamicCounters(ui32 nodeIndex = 0);
298-
void SetupMonitoring();
298+
void SetupMonitoring(ui16 monitoringPortOffset = 0);
299299

300300
using TEventObserverCollection = std::list<std::function<void(TAutoPtr<IEventHandle>& event)>>;
301301
class TEventObserverHolder {
@@ -655,6 +655,7 @@ namespace NActors {
655655
TIntrusivePtr<IRandomProvider> DispatcherRandomProvider;
656656
TAutoPtr<TLogBackend> LogBackend;
657657
bool NeedMonitoring;
658+
ui16 MonitoringPortOffset = 0;
658659

659660
TIntrusivePtr<IRandomProvider> RandomProvider;
660661
TIntrusivePtr<ITimeProvider> TimeProvider;

ydb/tests/fq/yt/kqprun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def yql_exec(self, program=None, program_file=None, verbose=False, check_error=T
3737

3838
cmd += '--emulate-yt ' \
3939
'--exclude-linked-udfs ' \
40-
'--clear-execution query ' \
40+
'--execution-case query ' \
4141
'--app-config=%(config_file)s ' \
4242
'--script-query=%(program_file)s ' \
4343
'--scheme-query=%(scheme_file)s ' \

0 commit comments

Comments
 (0)