Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26891

Flaky test:YarnSchedulerBackendSuite."RequestExecutors reflects node blacklist and is serializable"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.4.0, 3.0.0
    • Fix Version/s: 2.4.3, 3.0.0
    • Component/s: Spark Core, YARN
    • Labels:
      None

      Description

      For even an unrelated change sometimes the YarnSchedulerBackendSuite#"RequestExecutors reflects node blacklist and is serializable" test fails with the following error:

      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.
      

       

        Attachments

          Activity

            People

            • Assignee:
              attilapiros Attila Zsolt Piros
              Reporter:
              attilapiros Attila Zsolt Piros
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: