Skip to content

Commit

Permalink
Remove unjustified verifies in cluster node config
Browse files Browse the repository at this point in the history
4a4aea4c9462bee09b7eec34a14aabd3beba2ad6
  • Loading branch information
E1pp committed Sep 9, 2024
1 parent 7401841 commit 8b593c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions yt/yt/server/node/cluster_node/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ void TClusterNodeConfig::Register(TRegistrar registrar)
if (!config->ResourceLimits->FreeMemoryWatermark) {
config->ResourceLimits->FreeMemoryWatermark = 0;
auto freeMemoryWatermarkNode = ConvertToNode(config->ExecNode->SlotManager->JobEnvironment)->AsMap()->FindChild("free_memory_watermark");
YT_VERIFY(!freeMemoryWatermarkNode);
if (freeMemoryWatermarkNode) {
config->ResourceLimits->FreeMemoryWatermark = freeMemoryWatermarkNode->GetValue<i64>();
}
Expand All @@ -409,7 +408,6 @@ void TClusterNodeConfig::Register(TRegistrar registrar)
}
if (!config->InstanceLimitsUpdatePeriod) {
auto resourceLimitsUpdatePeriodNode = ConvertToNode(config->ExecNode->SlotManager->JobEnvironment)->AsMap()->FindChild("resource_limits_update_period");
YT_VERIFY(!resourceLimitsUpdatePeriodNode);
if (resourceLimitsUpdatePeriodNode) {
config->InstanceLimitsUpdatePeriod = NYTree::ConvertTo<std::optional<TDuration>>(resourceLimitsUpdatePeriodNode);
}
Expand Down

0 comments on commit 8b593c1

Please sign in to comment.