Thursday 12 September 2013

What does "response too long" means in MongoDB Java driver?

What does "response too long" means in MongoDB Java driver?

Sometimes I get this exception from MongoDB Java driver 2.10.1:
java.lang.IllegalArgumentException: response too long: 1912733750
at com.mongodb.Response.<init>(Response.java:47)
at com.mongodb.DBPort.go(DBPort.java:124)
at com.mongodb.DBPort.call(DBPort.java:74)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295)
at com.mongodb.DBCursor._check(DBCursor.java:368)
at com.mongodb.DBCursor._hasNext(DBCursor.java:459)
at com.mongodb.DBCursor.hasNext(DBCursor.java:484)
Obviously, my response is not that long. Actually it's rather small, there
are just 1000 items in the collection, 100-500 bytes each. Why this may
happen?

No comments:

Post a Comment