Skip to content

Commit ccb1ed1

Browse files
authored
fix time sync check (#12448)
1 parent eac1e36 commit ccb1ed1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ydb/core/health_check/health_check.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,12 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
10521052
}
10531053

10541054
template<typename TEvent>
1055-
[[nodiscard]] TRequestResponse<typename NNodeWhiteboard::WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard(TNodeId nodeId) {
1055+
[[nodiscard]] TRequestResponse<typename NNodeWhiteboard::WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard(TNodeId nodeId, std::initializer_list<int> fields = {}) {
10561056
TActorId whiteboardServiceId = NNodeWhiteboard::MakeNodeWhiteboardServiceId(nodeId);
10571057
auto request = MakeHolder<TEvent>();
1058+
for (auto field : fields) {
1059+
request->Record.AddFieldsRequired(field);
1060+
}
10581061
TRequestResponse<typename NNodeWhiteboard::WhiteboardResponse<TEvent>::Type> response(Span.CreateChild(TComponentTracingLevels::TTablet::Detailed, TypeName(*request.Get())));
10591062
if (response.Span) {
10601063
response.Span.Attribute("target_node_id", nodeId);
@@ -1068,7 +1071,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
10681071
if (NodeIds.insert(nodeId).second) {
10691072
Send(TlsActivationContext->ActorSystem()->InterconnectProxy(nodeId), new TEvents::TEvSubscribe());
10701073
}
1071-
NodeSystemState.emplace(nodeId, RequestNodeWhiteboard<NNodeWhiteboard::TEvWhiteboard::TEvSystemStateRequest>(nodeId));
1074+
NodeSystemState.emplace(nodeId, RequestNodeWhiteboard<NNodeWhiteboard::TEvWhiteboard::TEvSystemStateRequest>(nodeId, {-1}));
10721075
++Requests;
10731076
}
10741077
}

0 commit comments

Comments
 (0)