[JAVA-362] IllegalArgumentException due to race condition in updated thread start Created: 31/May/11  Updated: 04/Jun/11  Resolved: 31/May/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.6.2

Type: Bug Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

mmsdbpings1b is a secondary and slaveOk == false

SEVERE: can't update node: mmsdbpings1b.10gen.cc:27018/mmsdbpings
java.lang.IllegalArgumentException: need a connector: admin
at com.mongodb.DBApiLayer.<init>(DBApiLayer.java:86)
at com.mongodb.Mongo.getDB(Mongo.java:319)
at com.mongodb.ReplicaSetStatus$Node.update(ReplicaSetStatus.java:149)
at com.mongodb.ReplicaSetStatus.updateAll(ReplicaSetStatus.java:314)
at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:263)



 Comments   
Comment by Antoine Girbal [ 31/May/11 ]

moved thread start to a start method

Comment by auto [ 31/May/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-362: IllegalArgumentException due to race condition in updated thread start
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6037357c3f7d94c10b40304008845a08a23907f1

Generated at Thu Feb 08 08:52:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.