mcvsubbu commented on a change in pull request #4037: Add more logs to 
ServiceStatus
URL: https://github.com/apache/incubator-pinot/pull/4037#discussion_r270629026
 
 

 ##########
 File path: 
pinot-common/src/main/java/org/apache/pinot/common/utils/ServiceStatus.java
 ##########
 @@ -227,70 +230,98 @@ private boolean isDone() {
     @Override
     public synchronized Status getServiceStatus() {
 
+      String descriptionSuffix = "";
       while (!isDone()) {
         String resourceName;
         if (_resourceIterator == null || !_resourceIterator.hasNext()) {
           _resourceIterator = _resourcesToMonitor.iterator();
         }
         resourceName = _resourceIterator.next();
-        IdealState idealState = getResourceIdealState(resourceName);
+        descriptionSuffix = String
+            .format("waitingFor=%s, resource=%s, numResourcesLeft=%d, 
numTotalResources=%d, minStartCount=%d,", getMatchName(),
+                resourceName, _resourcesToMonitor.size(), 
_numTotalResourcesToMonitor, _minResourcesStartCount);
 
-        // If the resource has been removed or disabled, ignore it
-        if (idealState == null || !idealState.isEnabled()) {
+        Pair<Status, String> statusPair = evaluateResourceStatus(resourceName, 
descriptionSuffix);
 
 Review comment:
   Good idea. let me try that

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to