Skip to content

Commit

Permalink
ensure nodes manually set as Up do not revert to Down (#11349)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Zalialov <zalyalov@mr-nvme-testing-01.search.yandex.net>
  • Loading branch information
vporyadke and Aleksandr Zalialov authored Nov 12, 2024
1 parent cf0394a commit 7b36db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/mind/hive/monitoring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ class TTxMonEvent_SetDown : public TTransactionBase<THive>, public TLoggedMonTra
TNodeInfo* node = Self->FindNode(NodeId);
if (node != nullptr) {
node->SetDown(Down);
db.Table<Schema::Node>().Key(NodeId).Update(NIceDb::TUpdate<Schema::Node::Down>(Down));
db.Table<Schema::Node>().Key(NodeId).Update<Schema::Node::Down, Schema::Node::BecomeUpOnRestart>(Down, false);
NJson::TJsonValue jsonOperation;
jsonOperation["NodeId"] = NodeId;
jsonOperation["Down"] = Down;
Expand Down

0 comments on commit 7b36db5

Please sign in to comment.