Skip to content

[SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException - #28174

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-18886
Closed

[SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException#28174
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-18886

Conversation

@dongjoon-hyun

@dongjoon-hyundongjoon-hyun commented Apr 10, 2020

Copy link
Copy Markdown
Member

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"

@dongjoon-hyundongjoon-hyun changed the title [SPARK-18886][CORE][FOLLOWUP] Fix test case[SPARK-18886][CORE][TESTS][FOLLOWUP] Fix an test caseApr 10, 2020
@dongjoon-hyundongjoon-hyun changed the title [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix an test case[SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersExceptionApr 10, 2020
// 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)

Copy link
Copy Markdown
MemberAuthor

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.

Copy link
Copy Markdown
Member

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.

@dongjoon-hyun

Copy link
Copy Markdown
MemberAuthor

cc @bmarcott , @cloud-fan , @tgravescs

@dongjoon-hyun

Copy link
Copy Markdown
MemberAuthor

Also, cc @srowen

@HyukjinKwon

Copy link
Copy Markdown
Member

I am going to merge unblock the PR builders.

@HyukjinKwon

HyukjinKwon commented Apr 10, 2020

Copy link
Copy Markdown
Member

Merged to master.

HyukjinKwon pushed a commit that referenced this pull request Apr 10, 2020
…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 <dongjoon@apache.org>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit c6ea693)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@dongjoon-hyun

Copy link
Copy Markdown
MemberAuthor

Thank you for reviewing and merging, @HyukjinKwon !

@dongjoon-hyun
dongjoon-hyun deleted the SPARK-18886 branch April 10, 2020 04:33
@SparkQA

Copy link
Copy Markdown

Test build #121052 has finished for PR 28174 at commit 23c425b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

sjincho pushed a commit to sjincho/spark that referenced this pull request Apr 15, 2020
…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"
```
Closesapache#28174 from dongjoon-hyun/SPARK-18886.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@dongjoon-hyun@HyukjinKwon@SparkQA@srowen