Skip to content
Snippets Groups Projects
Commit d681742b authored by Peter Ableda's avatar Peter Ableda Committed by Sean Owen
Browse files

[SPARK-15813] Improve Canceling log message to make it less ambiguous

## What changes were proposed in this pull request?
Add new desired executor number to make the log message less ambiguous.

## How was this patch tested?
This is a trivial change

Author: Peter Ableda <abledapeter@gmail.com>

Closes #13552 from peterableda/patch-1.
parent e2ab79d5
No related branches found
No related tags found
No related merge requests found
...@@ -354,7 +354,8 @@ private[yarn] class YarnAllocator( ...@@ -354,7 +354,8 @@ private[yarn] class YarnAllocator(
} else if (missing < 0) { } else if (missing < 0) {
val numToCancel = math.min(numPendingAllocate, -missing) val numToCancel = math.min(numPendingAllocate, -missing)
logInfo(s"Canceling requests for $numToCancel executor containers") logInfo(s"Canceling requests for $numToCancel executor container(s) to have a new desired " +
s"total $targetNumExecutors executors.")
val matchingRequests = amClient.getMatchingRequests(RM_REQUEST_PRIORITY, ANY_HOST, resource) val matchingRequests = amClient.getMatchingRequests(RM_REQUEST_PRIORITY, ANY_HOST, resource)
if (!matchingRequests.isEmpty) { if (!matchingRequests.isEmpty) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment