Skip to content

Commit b0255cf

Browse files
committed
[SPARK-52661] Suppress pending pod log messages
### What changes were proposed in this pull request? This PR aims to suppress pending pod log messages from WARN to DEBUG. ### Why are the changes needed? Since the pending status is a legit status, we don't need to WARN. Frequently, it can happen during the K8s cluster autoscaling-up. ``` 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:44 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:46 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:50 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:55 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:58:58 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:03 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:05 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:09 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:13 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:13 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:13 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:13 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. 25/07/02 22:59:13 WARN BaseAppDriverObserver: Cannot determine driver pod status, the pod may in pending state. ``` ### Does this PR introduce _any_ user-facing change? No behavior change because this changes only log levels. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#272 from dongjoon-hyun/SPARK-52661. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 2839e3c commit b0255cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spark-operator/src/main/java/org/apache/spark/k8s/operator/reconciler/observers/BaseAppDriverObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected Optional<ApplicationState> observeDriverTermination(
8282
if (status == null
8383
|| status.getContainerStatuses() == null
8484
|| status.getContainerStatuses().isEmpty()) {
85-
log.warn("Cannot determine driver pod status, the pod may in pending state.");
85+
log.debug("Cannot determine driver pod status, the pod may in pending state.");
8686
return Optional.empty();
8787
}
8888

0 commit comments

Comments
 (0)