Attila Zsolt Piros created SPARK-26891: ------------------------------------------
Summary: 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.4.0, 2.3.0, 3.0.0 Reporter: Attila Zsolt Piros For unrelated changes sometimes 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org