mongodb - Successful CRUD but for lasterror in play reactivemongo 2.3.8 -


have used play (2.3.8) reactive scala sample code connect , create/read mongo instance cannot shake lasterror haunts me misconfigured host name. enabling debugging: logger.reactivemongo=debug shows details:

[debug] r.c.a.mongodbsystem - received checked write request                           [debug] r.api.failover - got error, retrying... (try #1 scheduled in 500 ms)       reactivemongo.core.actors.exceptions$primaryunavailableexception$: mongoerror['no primary node available!']         @ reactivemongo.core.actors.exceptions$primaryunavailableexception$.<clinit>(actors.scala) ~[reactivemongo_2.11-0.10.5.0.akka23.jar:0.10.5.0.akka23]         @ reactivemongo.core.actors.mongodbsystem$$anonfun$pickchannel$4.apply(actors.scala:508) ~[reactivemongo_2.11-0.10.5.0.akka23.jar:0.10.5.0.akka23]           @ reactivemongo.core.actors.mongodbsystem$$anonfun$pickchannel$4.apply(actors.scala:508) ~[reactivemongo_2.11-0.10.5.0.akka23.jar:0.10.5.0.akka23]           @ scala.option.getorelse(option.scala:120) ~[scala-library-2.11.4.jar:na]                                                                                    @ reactivemongo.core.actors.mongodbsystem.pickchannel(actors.scala:508) ~[reactivemongo_2.11-0.10.5.0.akka23.jar:0.10.5.0.akka23]                    [debug] r.c.a.mongodbsystem - connectall job running... status: node[wengen:27017: unknown (1/10 available connections), latency=0], auth=set()               [debug] r.c.a.mongodbsystem - connectall job running... status: node[wengen:27017: unknown (1/10 available connections), latency=0], auth=set()               [debug] r.c.a.mongodbsystem - connectall job running... status: node[wengen:27017: unknown (1/10 available connections), latency=0], auth=set()               [debug] r.c.a.mongodbsystem - connectall job running... status: node[wengen:27017: unknown (1/10 available connections), latency=0], auth=set()               [info] r.c.a.mongodbsystem - node set available                                                                                                    [info] r.c.a.mongodbsystem - primary available                                                                                                     [debug] r.c.a.monitoractor - set: primary available                                                                     , insert of post fine lasterror:  [debug] r.c.a.mongodbsystem - sending request expecting response request(3001,0,insert(0,playdb.newpersons),buffersequence(dynamicchannelbuffer(ridx=0, widx=60, cap=64),wrappedarray()),reactivemongo.api.readpreference$primary$@47979aa3,none) connection connection([id: 0xedfcbc47, /192.168.15.46:55680 => wengen/192.168.15.67:27017],connected,set(),none) of node wengen:27017                                                                                                                                                                                     [debug] r.c.a.mongodbsystem - got response -302203833! give message=response(messageheader(110,45,3001,1),reply(8,0,0,1),littleendianheapchannelbuffer(ridx=36, widx=110, cap=110),responseinfo(-302203833)) promise scala.concurrent.impl.promise$defaultpromise@bd0cdcc                                                                                        [debug] r.c.a.mongodbsystem - {3001} it's getlasterror                                                                                                                                   [debug] application - inserted lasterror: reactivemongo.core.commands.lasterror: databaseexception['empty lasterror message']      

db.reseterror() in mongo not rid of this. inserts confirmed collection. code here: https://github.com/nanothermite/playrctmongo

any suggestions?

override in logback with:

<logger name="reactivemongo.api.failover2">     <level value="info"/> </logger>  <logger name="reactivemongo.core.actors">     <level value="info"/> </logger> 

this silence only abusive debug messages of reactivemongo


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

order - Notification for user in user account opencart -