You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/04/26 21:52:00 UTC

[jira] [Updated] (SPARK-26891) Flaky test:YarnSchedulerBackendSuite."RequestExecutors reflects node blacklist and is serializable"

     [ https://issues.apache.org/jira/browse/SPARK-26891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun updated SPARK-26891:
----------------------------------
    Fix Version/s: 2.4.3

> Flaky test:YarnSchedulerBackendSuite."RequestExecutors reflects node blacklist and is serializable"
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-26891
>                 URL: https://issues.apache.org/jira/browse/SPARK-26891
>             Project: Spark
>          Issue Type: Bug
>          Components: YARN
>    Affects Versions: 2.3.0, 2.4.0, 3.0.0
>            Reporter: Attila Zsolt Piros
>            Assignee: Attila Zsolt Piros
>            Priority: Major
>             Fix For: 3.0.0, 2.4.3
>
>
> For even an unrelated change sometimes the YarnSchedulerBackendSuite#"RequestExecutors reflects node blacklist and is serializable" test fails with the following error:
> {noformat}
> Error Message
> org.mockito.exceptions.misusing.WrongTypeOfReturnValue:  EmptySet$ cannot be returned by resourceOffers() resourceOffers() should return Seq *** If you're unsure why you're getting above error read on. Due to the nature of the syntax above problem might occur because: 1. This exception *might* occur in wrongly written multi-threaded tests.    Please refer to Mockito FAQ on limitations of concurrency testing. 2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies -     - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method. 
> Stacktrace
> sbt.ForkMain$ForkError: org.mockito.exceptions.misusing.WrongTypeOfReturnValue: 
> EmptySet$ cannot be returned by resourceOffers()
> resourceOffers() should return Seq
> ***
> If you're unsure why you're getting above error read on.
> Due to the nature of the syntax above problem might occur because:
> 1. This exception *might* occur in wrongly written multi-threaded tests.
>    Please refer to Mockito FAQ on limitations of concurrency testing.
> 2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies - 
>    - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.
> {noformat}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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