[JAVA-719] Getting "com.mongodb.MongoException: timeout" even when data is persisted on update operation Created: 19/Dec/12  Updated: 25/Jun/13  Resolved: 25/Jun/13

Status: Closed
Project: Java Driver
Component/s: Connection Management
Affects Version/s: 2.9.3, 2.10.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Abhinav Shah Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

red hat linux 64 bit.



 Description   

Getting following exception when trying to do insert / udpate.

<code>
Caused by: com.mongodb.MongoException: timeout
at com.mongodb.CommandResult.getException(CommandResult.java:100)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:134)
at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:142)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:183)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:249)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:205)
at com.mongodb.DBCollection.insert(DBCollection.java:57)
at com.mongodb.DBCollection.insert(DBCollection.java:86)
at com.mongodb.DBCollection.save(DBCollection.java:792)
at com.mongodb.DBCollection.save(DBCollection.java:768)

-----------------------------------------------------------------------

com.mongodb.MongoException: timeout
at com.mongodb.CommandResult.getException(CommandResult.java:100)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:134)
at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:142)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:183)
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:155)
at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:328)
at com.mongodb.DBCollection.update(DBCollection.java:160)
at com.mongodb.DBCollection.update(DBCollection.java:191)
</code>

Data gets persisted to the DB though.

On second attempt, I don't get the exception.
Also this is very intermittent and most often happens when the server is idle for a while.



 Comments   
Comment by Jeffrey Yemin [ 25/Jun/13 ]

Please re-open if you can provide additional information.

Comment by Jeffrey Yemin [ 27/Dec/12 ]

Do you suspect this to be a bug in the driver? Can you post server logs?

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