@@ -54,22 +54,28 @@ public UtilizationChecker.CheckResult isResourceUtilizationWithinLimits(String t
5454 if (StringUtils .isEmpty (tableNameWithType )) {
5555 throw new IllegalArgumentException ("Table name found to be null or empty while checking resource utilization." );
5656 }
57- LOGGER .info ("Checking resource utilization for table: {}" , tableNameWithType );
5857 UtilizationChecker .CheckResult overallIsResourceUtilizationWithinLimits = UtilizationChecker .CheckResult .PASS ;
5958 for (UtilizationChecker utilizationChecker : _utilizationCheckers ) {
6059 UtilizationChecker .CheckResult isResourceUtilizationWithinLimits =
6160 utilizationChecker .isResourceUtilizationWithinLimits (tableNameWithType , purpose );
62- LOGGER .info ("For utilization checker: {}, isResourceUtilizationWithinLimits: {}, purpose: {}" ,
63- utilizationChecker .getName (), isResourceUtilizationWithinLimits , purpose );
6461 if (isResourceUtilizationWithinLimits == UtilizationChecker .CheckResult .FAIL ) {
6562 // If any UtilizationChecker returns FAIL, we should mark the overall as FAIL. FAIL should always have
6663 // priority over other results
64+ LOGGER .error (
65+ "The utilization checker: {} failed on table {}, isResourceUtilizationWithinLimits: {}, purpose: {}" ,
66+ utilizationChecker .getName (), tableNameWithType , isResourceUtilizationWithinLimits , purpose );
6767 overallIsResourceUtilizationWithinLimits = UtilizationChecker .CheckResult .FAIL ;
68- } else if ((overallIsResourceUtilizationWithinLimits == UtilizationChecker .CheckResult .PASS )
69- && (isResourceUtilizationWithinLimits == UtilizationChecker .CheckResult .UNDETERMINED )) {
68+ } else if (isResourceUtilizationWithinLimits == UtilizationChecker .CheckResult .UNDETERMINED ) {
7069 // If we haven't already updated the overall to a value other than PASS, and we get an UNDETERMINED result,
7170 // update the overall to UNDETERMINED. Should not update to UNDETERMINED if we have set the overall to FAIL
72- overallIsResourceUtilizationWithinLimits = UtilizationChecker .CheckResult .UNDETERMINED ;
71+ if (overallIsResourceUtilizationWithinLimits == UtilizationChecker .CheckResult .PASS ) {
72+ overallIsResourceUtilizationWithinLimits = UtilizationChecker .CheckResult .UNDETERMINED ;
73+ }
74+ LOGGER .warn ("The utilization checker: {} couldn't determine for table {}, purpose: {}" ,
75+ utilizationChecker .getName (), tableNameWithType , purpose );
76+ } else {
77+ LOGGER .info ("For utilization checker: {} pass on table {}, purpose: {}" , utilizationChecker .getName (),
78+ tableNameWithType , purpose );
7379 }
7480 }
7581 return overallIsResourceUtilizationWithinLimits ;
0 commit comments