[JAVA-1036] getCollectionNames() causing a "ids don't match" exception intermittently Created: 31/Oct/13  Updated: 04/Dec/13  Resolved: 04/Dec/13

Status: Closed
Project: Java Driver
Component/s: Error Handling
Affects Version/s: 2.9.3
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Simon Tucker [X] Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mavericks



 Description   

I'm running into an intermittent error when running a bunch of unit tests (though it also occurs when I run a specific test). Before running the tests I clear the mongo database table by table. Every now and then I get the following:

Oct 31, 2013 1:22:27 PM com.mongodb.DBPortPool gotError
WARNING: emptying DBPortPool to /127.0.0.1:27017 b/c of error
com.mongodb.MongoException: ids don't match
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:285)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:256)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:289)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:274)
at com.mongodb.DB.getCollectionNames(DB.java:381)
at com.parc.cip.repository.MongoDatabaseBridge.cleanDB(MongoDatabaseBridge.java:74)

the line in file is:

Set<String> collectionNames = db.getCollectionNames();

This has been replicated on a few different machines. I am running 2.4.7 of the mongo database.



 Comments   
Comment by Jeffrey Yemin [ 04/Dec/13 ]

Hi Simon,

I haven't heard back from you in a while, so I'm going to close this. Please feel free to re-open if you have more information.

Jeff

Comment by Jeffrey Yemin [ 01/Nov/13 ]

Hi Simon,

I need some more information, as I don't have enough yet to attempt to reproduce this and the root cause is not obvious:

  1. How do you create your Mongo instance (i.e., which constructor do you use and what arguments do you pass)?
  2. Are your tests multi-threaded?
  3. Are there any other errors in the client or the server logs?
  4. When you run the specific test, does it occur consistently or still intermittently?
Generated at Thu Feb 08 08:53:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.