Skip to content

Commit 154f927

Browse files
authored
Fix monitoring page registration races in tests (#8770)
1 parent 96dfeb9 commit 154f927

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ydb/core/mon/sync_http_mon.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ namespace NActors {
5454
}
5555

5656
void TSyncHttpMon::Stop() {
57-
if (IndexMonPage) {
58-
IndexMonPage->ClearPages(); // it's required to avoid loop-reference
59-
TBase::Stop();
60-
IndexMonPage.Drop();
61-
}
57+
IndexMonPage->ClearPages(); // it's required to avoid loop-reference
58+
TBase::Stop();
6259
}
6360

6461
void TSyncHttpMon::Register(NMonitoring::IMonPage* page) {

ydb/core/testlib/actors/test_runtime.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ namespace NActors {
2727
void TTestActorRuntime::TNodeData::Stop() {
2828
if (Mon) {
2929
Mon->Stop();
30-
GetAppData<NKikimr::TAppData>()->Mon = nullptr;
3130
}
3231
TNodeDataBase::Stop();
3332
}

0 commit comments

Comments
 (0)