Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major - P3
-
None
-
3.0.2
-
None
-
ALL
-
Description
It is hard to reproduce, but I have this issue identified multiple times in production environment.
One operation insert a document into a collection host in only one mongod with write concern 1. After got the write success response, a count with condition is issued to the same mongod. Surely, the count response should include the newly-inserted document. However, sometimes it just doesn't have the new document counted.
Just my guessing: If the indexing of the count condition is performed in background, there is possibility that collection indexing is not updated when insert operation returns OK even with write concern 1. If count operation depends on the index, then a immediate count operation could return result without the newly-inserted document counted.