[JAVA-2452] Unable to find a document using _id Created: 15/Feb/17 Updated: 11/Sep/19 Resolved: 21/Feb/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | Shiuzi Chen | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Environment: The issue we are seeing is in a very short period (< 10 ms) a document is created in a collection and then queried back. On the query back (using _id field) the document is not found. If queried later by _id it is found. Is this the expected behavior for Mongo 3.2.10? One observation was this issue starting occurring when we upgraded from 3.0 Mongo to 3.2 Mongo enterprise version. |
| Comments |
| Comment by Ross Lawley [ 21/Feb/17 ] |
|
Just to let you know this project is for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support. Useful information to include would be the Mongo Java Driver version, the MongoDB setup eg: sharded replicaset cluster or replicaset and the readPreference. Also, it looks like you are using Spring Data so please include the version information as well. If you do follow up via one of the options above please post a link and I will endeavour to follow the conversation there. All the best, Ross |
| Comment by Emily Stolfo [ 20/Feb/17 ] |
|
No problem, I'll switch the ticket over to Java. |
| Comment by Shiuzi Chen [ 20/Feb/17 ] |
|
We are using Java. I think that I selected the wrong project. Any way to transform to different project or I have to create a new one. Thanks! |
| Comment by Emily Stolfo [ 20/Feb/17 ] |
|
Which language are you using to connect to MongoDB? You've created this ticket in the Mongoid project, which is the Ruby MongoDB ODM but I'm afraid there might be some confusion somewhere. |
| Comment by Shiuzi Chen [ 20/Feb/17 ] |
|
Maybe I picked up wrong project. I can not find those For #2, the write and the read are done via two separate simpleRepository.save(episode); And the read looks something like this: Predicate queryDsl = we did a hotfix to the production app today to retry the |
| Comment by Emily Stolfo [ 16/Feb/17 ] |
|
Can you please provide the following information so we can investigate further?
Thanks |