Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-2023

Test logs polluted by ConfigurationException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 4.0.6
    • 4.0.8
    • clustering

    Description

      A number of sal-akka-raft tests are polluted with the following splat:

      07:19:29,545 am [test-akka.actor.default-dispatcher-9] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader1: Could not obtain Cluster
      akka.ConfigurationException: ActorSystem [akka://test] needs to have 'akka.actor.provider' set to 'cluster' in the configuration, currently uses [akka.actor.LocalActorRefProvider]
      	at akka.cluster.Cluster.<init>(Cluster.scala:84)
      	at akka.cluster.Cluster$.createExtension(Cluster.scala:43)
      	at akka.cluster.Cluster$.createExtension(Cluster.scala:36)
      	at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:1158)
      	at akka.actor.ExtensionId.apply(Extension.scala:78)
      	at akka.actor.ExtensionId.apply$(Extension.scala:77)
      	at akka.cluster.Cluster$.apply(Cluster.scala:36)
      	at akka.actor.ExtensionId.get(Extension.scala:96)
      	at akka.actor.ExtensionId.get$(Extension.scala:96)
      	at akka.cluster.Cluster$.get(Cluster.scala:37)
      	at akka.cluster.Cluster.get(Cluster.scala)
      	at org.opendaylight.controller.cluster.raft.RaftActorContextImpl.getCluster(RaftActorContextImpl.java:168)
      	at org.opendaylight.controller.cluster.raft.behaviors.Follower.isThisFollowerIsolated(Follower.java:584)
      	at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleElectionTimeout(Follower.java:510)
      	at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:448)
      	at org.opendaylight.controller.cluster.raft.RaftActor.possiblyHandleBehaviorMessage(RaftActor.java:320)
      	at org.opendaylight.controller.cluster.raft.RaftActor.handleCommand(RaftActor.java:269)
      	at org.opendaylight.controller.cluster.raft.MockRaftActor.handleCommand(MockRaftActor.java:228)
      	at org.opendaylight.controller.cluster.raft.AbstractRaftActorIntegrationTest$TestRaftActor.handleCommand(AbstractRaftActorIntegrationTest.java:177)
      	at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24)
      	at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20)
      	at scala.PartialFunction.applyOrElse(PartialFunction.scala:189)
      	at scala.PartialFunction.applyOrElse$(PartialFunction.scala:188)
      	at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20)
      	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:244)
      	at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:245)
      	at akka.actor.Actor.aroundReceive(Actor.scala:537)
      	at akka.actor.Actor.aroundReceive$(Actor.scala:535)
      	at akka.persistence.AbstractPersistentActor.akka$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:295)
      	at akka.persistence.Eventsourced$$anon$4.stateReceive(Eventsourced.scala:923)
      	at akka.persistence.Eventsourced.aroundReceive(Eventsourced.scala:251)
      	at akka.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:250)
      	at akka.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:295)
      	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580)
      	at akka.actor.ActorCell.invoke(ActorCell.scala:548)
      	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
      	at akka.dispatch.Mailbox.run(Mailbox.scala:231)
      	at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
      

      Investigate the underlying cause and fix it.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dominik.vrbovsky Dominik Vrbovsk√Ĺ
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: