You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/04/10 03:05:22 UTC

[spark] branch branch-3.0 updated: [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 7758fa4  [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException
7758fa4 is described below

commit 7758fa43f1e58b443ca8eb1b73dfbfba1385d7ba
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Apr 10 12:02:41 2020 +0900

    [SPARK-18886][CORE][TESTS][FOLLOWUP] Fix a test failure due to InvalidUseOfMatchersException
    
    ### 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 <do...@apache.org>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit c6ea6933e2ff5bc89f609594d34390111f88af88)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 .../org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/test/scala/org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala b/core/src/test/scala/org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala
index fad971f..0adeec1 100644
--- a/core/src/test/scala/org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala
+++ b/core/src/test/scala/org/apache/spark/scheduler/CoarseGrainedSchedulerBackendSuite.scala
@@ -253,7 +253,7 @@ class CoarseGrainedSchedulerBackendSuite extends SparkFunSuite with LocalSparkCo
 
     // 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)
     backend.driverEndpoint.send(
       StatusUpdate("1", 1, TaskState.FINISHED, buffer, taskResources))
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org