-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-26392][YARN] Cancel pending allocate requests by taking locality preference into account #23344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
ping @sryza @vanzin @jerryshao please take a look, thanks. |
vanzin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the title so the wrapped content is in the title.
| } else { | ||
| logWarning("Expected to find pending requests, but found none.") | ||
| // cancel pending allocate requests by taking locality preference into account | ||
| val cancelRequests = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a single statement, since take handles negative values.
scala> Seq(1, 2, 3).take(-1)
res0: Seq[Int] = List()
|
ok to test |
|
Test build #100291 has finished for PR 23344 at commit
|
|
Thank you for review @vanzin , updated. |
|
Test build #100296 has finished for PR 23344 at commit
|
|
Merging to master. |
|
(And also 2.4.). |
…ty preference into account ## What changes were proposed in this pull request? Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. ## How was this patch tested? N.A. Closes #23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]> (cherry picked from commit 3d6b44d) Signed-off-by: Marcelo Vanzin <[email protected]>
|
Thanks! @vanzin |
…ty preference into account ## What changes were proposed in this pull request? Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. ## How was this patch tested? N.A. Closes apache#23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]>
…ty preference into account ## What changes were proposed in this pull request? Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. ## How was this patch tested? N.A. Closes apache#23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]>
…ty preference into account ## What changes were proposed in this pull request? Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. ## How was this patch tested? N.A. Closes apache#23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]> (cherry picked from commit 3d6b44d) Signed-off-by: Marcelo Vanzin <[email protected]>
…ty preference into account Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. N.A. Closes apache#23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]> (cherry picked from commit 3d6b44d) Signed-off-by: Marcelo Vanzin <[email protected]>
…ty preference into account ## What changes were proposed in this pull request? Right now, we cancel pending allocate requests by its sending order. I thing we can take locality preference into account when do this to perfom least impact on task locality preference. ## How was this patch tested? N.A. Closes apache#23344 from Ngone51/dev-cancel-pending-allocate-requests-by-taking-locality-preference-into-account. Authored-by: Ngone51 <[email protected]> Signed-off-by: Marcelo Vanzin <[email protected]> (cherry picked from commit 3d6b44d) Signed-off-by: Marcelo Vanzin <[email protected]>
What changes were proposed in this pull request?
Right now, we cancel pending allocate requests by its sending order. I thing we can take
locality preference into account when do this to perfom least impact on task locality preference.
How was this patch tested?
N.A.