srowen commented on a change in pull request #23845: [SPARK-26941][YARN]Fix
incorrect computation of maxNumExecutorFailures in ApplicationMaster for
streaming
URL: https://github.com/apache/spark/pull/23845#discussion_r258515411
##########
File path:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
##########
@@ -100,7 +100,9 @@ private[spark] class ApplicationMaster(
private val maxNumExecutorFailures = {
val effectiveNumExecutors =
- if (Utils.isDynamicAllocationEnabled(sparkConf)) {
+ if (Utils.isStreamingDynamicAllocationEnabled(sparkConf)) {
+ sparkConf.get(STREAMING_DYN_ALLOCATION_MAX_EXECUTORS)
Review comment:
For other reviewers -- this is the fix itself.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]