LuciferYang commented on code in PR #38711:
URL: https://github.com/apache/spark/pull/38711#discussion_r1037142914
##########
core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala:
##########
@@ -843,9 +847,9 @@ private[spark] class ExecutorAllocationManager(
def removeStageFromResourceProfileIfUnused(stageAttempt: StageAttempt):
Unit = {
if (!stageAttemptToNumRunningTask.contains(stageAttempt) &&
!stageAttemptToNumTasks.contains(stageAttempt) &&
- !stageAttemptToNumSpeculativeTasks.contains(stageAttempt) &&
- !stageAttemptToTaskIndices.contains(stageAttempt) &&
- !stageAttemptToSpeculativeTaskIndices.contains(stageAttempt)
+ !stageAttemptToSpeculativeTaskIndices.contains(stageAttempt) &&
Review Comment:
hmm... why does
`!stageAttemptToSpeculativeTaskIndices.contains(stageAttempt)` move from after
`!stageAttemptToTaskIndices.contains(stageAttempt)` to before
`!stageAttemptToTaskIndices.contains(stageAttempt)`?
--
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]