[SERVER-44696] Query failed to find a document during a transaction Created: 18/Nov/19  Updated: 19/Nov/19  Resolved: 19/Nov/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dave Shaw Assignee: Carl Champain (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongo.clean.log    
Operating System: ALL
Participants:

 Description   

Our development environment uses a one node replica set running mongo 4.0.7. 

During a data load we create a new document.  We can initially find this document with a simple query, but straight afterwards when we run the same query from within a transaction we cannot find the document.

 



 Comments   
Comment by Carl Champain (Inactive) [ 19/Nov/19 ]

dave.shaw@ripjar.com, I'm not sure wether you saw my previous comment or not (I had to edit it, sorry about that!), but this ticket doesn't appear to be a bug. So if you need assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag

Comment by Dave Shaw [ 19/Nov/19 ]

Hi Carl,

I've attached the mongo log file.  I've had to sanitise it a little bit as it contains some sensitive company data.

The two queries were identical and a sample looked like this:

`{"namespace":"torch","clientKey":"lowercasekey","id":83372}`

 

Additionally, when we changed the write concern in the document creation command to include `{j:true}` we did not see this problem.

 

imongo.clean.log

Dave

Comment by Carl Champain (Inactive) [ 19/Nov/19 ]

Hi dave.shaw@ripjar.com,

The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag

A good rule of thumb, when asking for help to our community, is to provide details about your issue. For example, in your case, you could provide both queries and the mongod.log file for this node.

Kind regards,
Carl

Generated at Thu Feb 08 05:06:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.