Sfoglia il codice sorgente

HPCC-14500 Change warning message for cluster status

To get the status information for a cluster, WsSMCEx::Activity is
using the queue name of the cluster to looks for the cluster in the
"/Status/Servers" section of DALI. If it cannot be found, WsSMCEx::
Activity returns a warning: "cluster not attached". This fix changes
the warning to: "Not listening for workunits".

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 9 anni fa
parent
commit
2f66cf53cd
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      esp/services/ws_smc/ws_smcService.cpp

+ 3 - 3
esp/services/ws_smc/ws_smcService.cpp

@@ -323,7 +323,7 @@ void CActivityInfo::readTargetClusterInfo(IConstWUClusterInfo& cluster, IPropert
     {
         smcQueue->foundQueueInStatusServer = findQueueInStatusServer(serverStatusRoot, statusServerName.str(), targetCluster->queueName.get());
         if (!smcQueue->foundQueueInStatusServer)
-            targetCluster->clusterStatusDetails.appendf("Cluster %s not attached; ", clusterName.str());
+            targetCluster->clusterStatusDetails.appendf("Cluster %s not listening for workunits; ", clusterName.str());
     }
 
     readJobQueue(targetCluster->serverQueue.queueName.str(), targetCluster->wuidsOnServerQueue, targetCluster->serverQueue.queueState, targetCluster->serverQueue.queueStateDetails);
@@ -1044,9 +1044,9 @@ void CWsSMCEx::setClusterStatus(IEspContext& context, const CWsSMCTargetCluster&
     returnCluster->setClusterStatus(queueStatusType);
     //Set 'Warning' which may be displayed beside cluster name
     if (queueStatusType == QueueRunningNotFound)
-        returnCluster->setWarning("Cluster not attached");
+        returnCluster->setWarning("Cluster not listening for workunits");
     else if (queueStatusType == QueuePausedOrStoppedNotFound)
-        returnCluster->setWarning("Queue paused or stopped - Cluster not attached");
+        returnCluster->setWarning("Queue paused or stopped - Cluster not listening for workunits");
     else if (queueStatusType != RunningNormal)
         returnCluster->setWarning("Queue paused or stopped");
     //Set 'StatusDetails' which may be displayed when a mouse is moved over cluster icon