-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.3
-
Component/s: Cluster Management
-
None
-
Environment:1.62 linux 64 bit server
When the whole replica set is down, java driver generates this log message every 5 seconds.
2010-12-06 14:35:10,294 ERROR [STDERR] (ReplicaSetStatus:Updater) Dec 6, 2010 2:35:10 PM com.mongodb.ReplicaSetStatus$Node update
SEVERE: can't update node: shared-mongo-004.1515.mtvi.com:27017
java.lang.NullPointerException
at com.mongodb.OutMessage.reset(OutMessage.java:73)
at com.mongodb.OutMessage.<init>(OutMessage.java:51)
at com.mongodb.OutMessage.query(OutMessage.java:38)
at com.mongodb.DBPort.findOne(DBPort.java:142)
at com.mongodb.DBPort.runCommand(DBPort.java:159)
at com.mongodb.ReplicaSetStatus$Node.update(ReplicaSetStatus.java:119)
at com.mongodb.ReplicaSetStatus.updateAll(ReplicaSetStatus.java:277)
at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:238)
Seems like an NPE is not what should happen. Strange thing is that OutMessage.java:73 is
_id = ID.getAndIncrement();
and I'm not sure how that line could generate an NPE.