We are running mongo in the replica set with read and write taking place from the master node. Now it is happening intermittently that the same document can be found with a query and sometimes it didn’t returns the document using exact same query.
Language: Java client for fetching mongo documents.
Cluster: Replica set mode
Client Verison: spring data mongo 3.0.7
Mongo version: 4.2.9
We found that issue is happening when query is run on indexes. It sometimes intermittently not returning the exact document.