Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7528

Flaky SchedulerActionsTest and MarathonSchedulerActorTest

    Details

      Description

      Tests are falky

      • SchedulerActionsTest
      • MarathonSchedulerActorTest
      • LoadTimeCachingPersistenceStoreTest (happen only once and I didn't grab the log)
        
        SchedulerActionsTest:
        
        - Kill staged tasks in correct order in case lost tasks reappear *** FAILED *** (21 milliseconds)
          org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked:
        killService.killInstances(
            List(Instance(instance [test-app.instance-d0ef7046-5285-11e7-bb1c-38d54714bf36],AgentInfo(host.some,None,List()),InstanceState(Staging,2017-06-16T11:20:35.757Z,None,None),Map(task [test-app.instance-d0ef7046-5285-11e7-bb1c-38d54714bf36.$anon] -> LaunchedEphemeral(task [test-app.instance-d0ef7046-5285-11e7-bb1c-38d54714bf36.$anon],1970-01-01T00:00:00.000Z,Status(1970-01-01T00:00:00.003Z,None,Some(task_id {
          value: "test-app.instance-d0ef7046-5285-11e7-bb1c-38d54714bf36.$anon"
        }
        state: TASK_STAGING
        ),Staging,NetworkInfo(host.some,List(),List())))),1970-01-01T00:00:00.000Z,UnreachableEnabled(5 minutes,10 minutes)), Instance(instance [test-app.instance-d0ef7045-5285-11e7-bb1c-38d54714bf36],AgentInfo(host.some,None,List()),InstanceState(Staging,2017-06-16T11:20:35.757Z,None,None),Map(task [test-app.instance-d0ef7045-5285-11e7-bb1c-38d54714bf36.$anon] -> LaunchedEphemeral(task [test-app.instance-d0ef7045-5285-11e7-bb1c-38d54714bf36.$anon],1970-01-01T00:00:00.000Z,Status(1970-01-01T00:00:00.002Z,None,Some(task_id {
          value: "test-app.instance-d0ef7045-5285-11e7-bb1c-38d54714bf36.$anon"
        }
        state: TASK_STAGING
        ),Staging,NetworkInfo(host.some,List(),List())))),1970-01-01T00:00:00.000Z,UnreachableEnabled(5 minutes,10 minutes))),
            OverCapacity
        );
        -> at mesosphere.marathon.SchedulerActionsTest$$anonfun$6.apply$mcV$sp(SchedulerActionsTest.scala:206)
        Actually, there were zero interactions with this mock.
          at mesosphere.marathon.SchedulerActionsTest$$anonfun$6.apply$mcV$sp(SchedulerActionsTest.scala:206)
          at mesosphere.marathon.SchedulerActionsTest$$anonfun$6.apply(SchedulerActionsTest.scala:176)
          at mesosphere.marathon.SchedulerActionsTest$$anonfun$6.apply(SchedulerActionsTest.scala:176)
          at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
          at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
          at org.scalatest.Transformer.apply(Transformer.scala:22)
          at org.scalatest.Transformer.apply(Transformer.scala:20)
          at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
          at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
          at mesosphere.marathon.SchedulerActionsTest.withFixture(SchedulerActionsTest.scala:27)
          at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
          at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
          at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
          at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
          at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
          at mesosphere.marathon.SchedulerActionsTest.org$scalatest$BeforeAndAfter$$super$runTest(SchedulerActionsTest.scala:27)
          at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:203)
          at mesosphere.marathon.SchedulerActionsTest.runTest(SchedulerActionsTest.scala:27)
          at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
          at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
          at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
          at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
          at scala.collection.immutable.List.foreach(List.scala:381)
          at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
          at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
          at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
          at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)
          at mesosphere.marathon.SchedulerActionsTest.runTests(SchedulerActionsTest.scala:27)
          at org.scalatest.Suite$class.run(Suite.scala:1147)
          at mesosphere.marathon.SchedulerActionsTest.org$scalatest$FunSuiteLike$$super$run(SchedulerActionsTest.scala:27)
          at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
          at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
          at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
          at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:233)
          at mesosphere.marathon.SchedulerActionsTest.org$scalatest$BeforeAndAfter$$super$run(SchedulerActionsTest.scala:27)
          at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:258)
          at mesosphere.marathon.SchedulerActionsTest.org$scalatest$BeforeAndAfterAll$$super$run(SchedulerActionsTest.scala:27)
          at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:213)
          at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:210)
          at mesosphere.marathon.SchedulerActionsTest.run(SchedulerActionsTest.scala:27)
          at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
          at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:480)
          at sbt.ForkMain$Run$2.call(ForkMain.java:296)
          at sbt.ForkMain$Run$2.call(ForkMain.java:286)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:748)
        
        
          
          MarathonSchedulerActorTest:
        
          - Restart deployments after failover *** FAILED *** (20 milliseconds)
            java.lang.AssertionError: assertion failed: expected class mesosphere.marathon.MarathonSchedulerActor$CommandFailed, found class mesosphere.marathon.MarathonSchedulerActor$DeploymentStarted (DeploymentStarted(DeploymentPlan id=011df73d-3d5b-4287-972a-90ebdd85d460,2017-06-16T11:26:43.535Z
          step 1:
            * Start(App(app1, cmd="cmd"List())), instances=0)
          step 2:
            * Scale(App(app1, cmd="cmd"List())), instances=2)
          ))
            at scala.Predef$.assert(Predef.scala:170)
            at akka.testkit.TestKitBase$class.expectMsgClass_internal(TestKit.scala:473)
            at akka.testkit.TestKitBase$class.expectMsgType(TestKit.scala:445)
            at mesosphere.marathon.MarathonSchedulerActorTest.expectMsgType(MarathonSchedulerActorTest.scala:38)
            at mesosphere.marathon.MarathonSchedulerActorTest$$anonfun$18.apply(MarathonSchedulerActorTest.scala:451)
            at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
            at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
            at org.scalatest.Transformer.apply(Transformer.scala:22)
            at org.scalatest.Transformer.apply(Transformer.scala:20)
            at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
            at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
            at mesosphere.marathon.MarathonSchedulerActorTest.withFixture(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
            at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
            at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
            at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
            at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
            at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$runTest(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:203)
            at mesosphere.marathon.MarathonSchedulerActorTest.runTest(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
            at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
            at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
            at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
            at scala.collection.immutable.List.foreach(List.scala:381)
            at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
            at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
            at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
            at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)
            at mesosphere.marathon.MarathonSchedulerActorTest.runTests(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.Suite$class.run(Suite.scala:1147)
            at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$FunSuiteLike$$super$run(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
            at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
            at org.scalatest.SuperEngine.runImpl(Engine.scala:521)
            at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:233)
            at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfter$$super$run(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:258)
            at mesosphere.marathon.MarathonSchedulerActorTest.org$scalatest$BeforeAndAfterAll$$super$run(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:213)
            at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:210)
            at mesosphere.marathon.MarathonSchedulerActorTest.run(MarathonSchedulerActorTest.scala:38)
            at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
            at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:480)
            at sbt.ForkMain$Run$2.call(ForkMain.java:296)
            at sbt.ForkMain$Run$2.call(ForkMain.java:286)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:748)
        
        

        Attachments

          Activity

            People

            • Assignee:
              icharalampidis Ioannis Charalampidis
              Reporter:
              janisz janisz
              Team:
              Orchestration Team
              Watchers:
              janisz, Matthias Eichstedt
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: