Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Apr 10, 2020

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-hyun dongjoon-hyun changed the title [SPARK-18886][CORE][FOLLOWUP] Fix test case [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix an test case Apr 10, 2020
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix an test case [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException Apr 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
Member Author

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
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
Member Author

cc @bmarcott , @cloud-fan , @tgravescs

@dongjoon-hyun
Copy link
Member Author

Also, cc @srowen

@HyukjinKwon
Copy link
Member

I am going to merge unblock the PR builders.

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Apr 10, 2020

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 <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit c6ea693)
Signed-off-by: HyukjinKwon <[email protected]>
@dongjoon-hyun
Copy link
Member Author

Thank you for reviewing and merging, @HyukjinKwon !

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

SparkQA commented Apr 10, 2020

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"
```

Closes apache#28174 from dongjoon-hyun/SPARK-18886.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
Sign up for free to 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