Skip to content

Commit 5b2927c

Browse files
authored
fix time sync check (#12446)
1 parent 5dde912 commit 5b2927c

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
@@ -1029,9 +1029,12 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
10291029
}
10301030

10311031
template<typename TEvent>
1032-
[[nodiscard]] TRequestResponse<typename WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard(TNodeId nodeId) {
1032+
[[nodiscard]] TRequestResponse<typename WhiteboardResponse<TEvent>::Type> RequestNodeWhiteboard(TNodeId nodeId, std::initializer_list<int> fields = {}) {
10331033
TActorId whiteboardServiceId = MakeNodeWhiteboardServiceId(nodeId);
10341034
auto request = MakeHolder<TEvent>();
1035+
for (int field : fields) {
1036+
request->Record.AddFieldsRequired(field);
1037+
}
10351038
TRequestResponse<typename WhiteboardResponse<TEvent>::Type> response(Span.CreateChild(TComponentTracingLevels::TTablet::Detailed, TypeName(*request.Get())));
10361039
if (response.Span) {
10371040
response.Span.Attribute("target_node_id", nodeId);
@@ -1043,7 +1046,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
10431046

10441047
void RequestGenericNode(TNodeId nodeId) {
10451048
if (NodeSystemState.count(nodeId) == 0) {
1046-
NodeSystemState.emplace(nodeId, RequestNodeWhiteboard<TEvWhiteboard::TEvSystemStateRequest>(nodeId));
1049+
NodeSystemState.emplace(nodeId, RequestNodeWhiteboard<TEvWhiteboard::TEvSystemStateRequest>(nodeId, {-1}));
10471050
++Requests;
10481051
}
10491052
}

0 commit comments

Comments
 (0)