Playframework 如何在Play 2.1应用程序启动时克服[warn]…PrimaryUnavailableException?

Playframework 如何在Play 2.1应用程序启动时克服[warn]…PrimaryUnavailableException?,playframework,playframework-2.1,reactivemongo,Playframework,Playframework 2.1,Reactivemongo,我不熟悉Play/Scala/ReactiveMongo堆栈,正在努力理解我在日志中看到的一个[warn],看看我是否能找到解决方法或让它消失。问题在于在replset上使用ReactiveMongo。出于某种原因,在应用程序启动时,驱动程序会记录以下令人不安的[警告] [debug] play - Plugin [play.api.cache.EhCachePlugin] is disabled [info] application - ReactiveMongoPlugin starting

我不熟悉Play/Scala/ReactiveMongo堆栈,正在努力理解我在日志中看到的一个[warn],看看我是否能找到解决方法或让它消失。问题在于在replset上使用ReactiveMongo。出于某种原因,在应用程序启动时,驱动程序会记录以下令人不安的[警告]

[debug] play - Plugin [play.api.cache.EhCachePlugin] is disabled
[info] application - ReactiveMongoPlugin starting...
[info] application - ReactiveMongoPlugin successfully started with db 'reactivemongo_app'! Servers:
        [cheetah1.local:27017]
        [cheetah2.local:27018]
[info] play - Application started (Dev)
[warn] r.api.Failover - Got an error, retrying... (try #1 is scheduled in 500 ms)
reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$: MongoError['No primary node is available!']
    at reactivemongo.core.actors.Exceptions$PrimaryUnavailableException$.<clinit>(actors.scala) ~[reactivemongo_2.10-0.9.jar:0.9]
    at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$5.apply(actors.scala:385) ~[reactivemongo_2.10-0.9.jar:0.9]
    at reactivemongo.core.actors.MongoDBSystem$$anonfun$pickChannel$5.apply(actors.scala:385) ~[reactivemongo_2.10-0.9.jar:0.9]
    at scala.Option.toRight(Option.scala:280) ~[scala-library.jar:na]
    at reactivemongo.core.actors.MongoDBSystem.pickChannel(actors.scala:385) ~[reactivemongo_2.10-0.9.jar:0.9]
    at reactivemongo.core.actors.MongoDBSystem$$anonfun$receive$1.applyOrElse(actors.scala:154) ~[reactivemongo_2.10-0.9.jar:0.9]
[info] a.e.s.Slf4jEventHandler - Slf4jEventHandler started
[debug] play - java.nio.channels.ClosedChannelException
[info] application - Checked index, result is Success(true)
appDependency是

val appDependencies = Seq("org.reactivemongo" %% "play2-reactivemongo" % "0.9")
有一个conf/play.plugins文件

400:play.modules.reactivemongo.ReactiveMongoPlugin
该应用程序本身从启动开始就运行良好,可以毫无问题地读写Mongo文档。这就是为什么我断言早期[警告]是“假阳性”的原因。这个警告正常吗?我能做些什么让它消失吗?

这似乎是“这里正常的噪音”:

这只是一个[警告]而不是[错误],基础设施立即恢复。“街上的话”是不用担心,所以我不会。这似乎是“这里的正常噪音”:

这只是一个[警告]而不是[错误],基础设施立即恢复。“街上的话”是不用担心,所以我不会

400:play.modules.reactivemongo.ReactiveMongoPlugin