From 5241a5e068aff6bbcf2dad8867461b40c204353e Mon Sep 17 00:00:00 2001 From: aiceflower Date: Tue, 25 Jul 2023 20:26:17 +0800 Subject: [PATCH] fix ec illegal status --- .../persistence/impl/DefaultNodeMetricManagerPersistence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/java/org/apache/linkis/manager/persistence/impl/DefaultNodeMetricManagerPersistence.java b/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/java/org/apache/linkis/manager/persistence/impl/DefaultNodeMetricManagerPersistence.java index 33c9e02633..fb0e56786e 100644 --- a/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/java/org/apache/linkis/manager/persistence/impl/DefaultNodeMetricManagerPersistence.java +++ b/linkis-computation-governance/linkis-manager/linkis-manager-persistence/src/main/java/org/apache/linkis/manager/persistence/impl/DefaultNodeMetricManagerPersistence.java @@ -119,7 +119,7 @@ public void addOrupdateNodeMetrics(NodeMetrics nodeMetrics) { "ignore update ShuttingDown status node:{} to status:{}", instance, NodeStatus.values()[nodeMetrics.getStatus()].name()); - persistenceNodeMetrics.setStatus(null); + persistenceNodeMetrics.setStatus(oldMetrics.getStatus()); } else { persistenceNodeMetrics.setStatus(nodeMetrics.getStatus()); }