dongjoon-hyun opened a new pull request, #905: URL: https://github.com/apache/spark-kubernetes-operator/pull/905
### What changes were proposed in this pull request? This PR aims to use `stream()` instead of `parallelStream()` in `PodUtils.isPodReady` and in two similar checks of `BaseAppDriverObserver.observeDriverTermination`. These are the only `parallelStream()` calls in this repository. ### Why are the changes needed? These lists are tiny, e.g., about five pod conditions or a few container statuses of a driver pod, and the predicates are cheap. So, `parallelStream()` only adds the overhead of `ForkJoinTask`s on the common pool. The overhead adds up because `AppRunningStep` calls `isPodReady` for every executor pod on each reconciliation. ### Does this PR introduce _any_ user-facing change? No. The results are unchanged. ### How was this patch tested? Pass the CIs with the existing tests, e.g., `AppRunningStepTest` and `AppDriverReadyObserverTest`. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
