-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException #28174
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
| // To avoid allocating any resources immediately after releasing the resource from the task to | ||
| // make sure that `availableAddrs` below won't change | ||
| when(ts.resourceOffers(any[IndexedSeq[WorkerOffer]])).thenReturn(Seq.empty) | ||
| when(ts.resourceOffers(any[IndexedSeq[WorkerOffer]], any[Boolean])).thenReturn(Seq.empty) |
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 is added recently by another PR.
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.
Does it just affect master? OK in any event if it fixes a test.
|
cc @bmarcott , @cloud-fan , @tgravescs |
|
Also, cc @srowen |
|
I am going to merge unblock the PR builders. |
|
Merged to master. |
…dUseOfMatchersException ### What changes were proposed in this pull request? This fixes one UT failure. ``` [info] - extra resources from executor *** FAILED *** (218 milliseconds) [info] org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers! [info] 0 matchers expected, 1 recorded: ``` ### Why are the changes needed? The original PR was merged with an outdated Jenkins result (7 days before the merging). ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Pass the Jenkins or manually do the following. ``` $ build/sbt "core/testOnly *.CoarseGrainedSchedulerBackendSuite" ``` Closes #28174 from dongjoon-hyun/SPARK-18886. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit c6ea693) Signed-off-by: HyukjinKwon <[email protected]>
|
Thank you for reviewing and merging, @HyukjinKwon ! |
|
Test build #121052 has finished for PR 28174 at commit
|
…dUseOfMatchersException ### What changes were proposed in this pull request? This fixes one UT failure. ``` [info] - extra resources from executor *** FAILED *** (218 milliseconds) [info] org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers! [info] 0 matchers expected, 1 recorded: ``` ### Why are the changes needed? The original PR was merged with an outdated Jenkins result (7 days before the merging). ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Pass the Jenkins or manually do the following. ``` $ build/sbt "core/testOnly *.CoarseGrainedSchedulerBackendSuite" ``` Closes apache#28174 from dongjoon-hyun/SPARK-18886. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
What changes were proposed in this pull request?
This fixes one UT failure.
Why are the changes needed?
The original PR was merged with an outdated Jenkins result (7 days before the merging).
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the Jenkins or manually do the following.