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

Clustering : Timed out trying to find the primary shard

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Helium
    • None
    • mdsal
    • None
    • Operating System: All
      Platform: All

    • 2285

    Description

      Upon installing features old-restconf and odl-toaster, accessing the toaster restconf API hangs, and then comes back with the following error message.

      Subsequent calls to toaster return an empty reply indicating that the features were not installed properly.

      {
      "errors": {
      "error": [
      {
      "error-type": "application",
      "error-tag": "operation-failed",
      "error-message": "Problem to get data from transaction.",
      "error-info": "ReadFailedException

      {message=Error reading data for path /(http://netconfcentral.org/ns/toaster?revision=2009-11-20)toaster, errorList=[RpcError [message=Error reading data for path /(http://netconfcentral.org/ns/toaster?revision=2009-11-20)toaster, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=org.opendaylight.controller.cluster.datastore.exceptions.NotInitializedException: Timed out trying to find the primary shard. Most likely cause is the shard is not initialized yet.]]}

      \n\tat org.opendaylight.controller.cluster.datastore.TransactionProxy$NoOpTransactionContext.readData(TransactionProxy.java:1037)\n\tat org.opendaylight.controller.cluster.datastore.TransactionProxy$2.invoke(TransactionProxy.java:261)\n\tat org.opendaylight.controller.cluster.datastore.TransactionProxy$TransactionFutureCallback.onComplete(TransactionProxy.java:643)\n\tat org.opendaylight.controller.cluster.datastore.TransactionProxy$9.onComplete(TransactionProxy.java:492)\n\tat org.opendaylight.controller.cluster.datastore.TransactionProxy$9.onComplete(TransactionProxy.java:488)\n\tat akka.dispatch.OnComplete.internal(Future.scala:246)\n\tat akka.dispatch.OnComplete.internal(Future.scala:244)\n\tat akka.dispatch.japi$CallbackBridge.apply(Future.scala:174)\n\tat akka.dispatch.japi$CallbackBridge.apply(Future.scala:171)\n\tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)\n\tat akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67)\n\tat akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82)\n\tat akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)\n\tat akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)\n\tat scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)\n\tat akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58)\n\tat akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)\n\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)\n\tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\n\tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\n\tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\n\tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\nCaused by: org.opendaylight.controller.cluster.datastore.exceptions.NotInitializedException: Timed out trying to find the primary shard. Most likely cause is the shard is not initialized yet.\n\tat org.opendaylight.controller.cluster.datastore.utils.ActorContext$1.apply(ActorContext.java:66)\n\tat org.opendaylight.controller.cluster.datastore.utils.ActorContext$1.apply(ActorContext.java:60)\n\tat scala.concurrent.Future$$anonfun$transform$1$$anonfun$apply$2.apply(Future.scala:222)\n\tat scala.concurrent.Future$$anonfun$transform$1$$anonfun$apply$2.apply(Future.scala:222)\n\tat scala.util.Try$.apply(Try.scala:161)\n\tat scala.concurrent.Future$$anonfun$transform$1.apply(Future.scala:222)\n\tat scala.concurrent.Future$$anonfun$transform$1.apply(Future.scala:220)\n\t... 13 more\n"
      }
      ]
      }
      }

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              wojdec Wojciech Dec
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: