Sample Header Ad - 728x90

How to read the fully replicated data using the atlas search aggregation pipeline?

0 votes
0 answers
29 views
I want to read the fully replicated data using the atlas search aggregation pipeline. But, Atlas search is not allowing me to read with concern "majority". Error Message: ===============
Command aggregate does not support { readConcern: { level: "majority", provenance: "clientSupplied" } } :: caused by :: Aggregation stage $search cannot run with a readConcern other than 'local'. Current readConcern: majority'.
So, How can we ensure the consistency in the search result? I've read the documentation and understood that the $search stage is performed by the mongot service and it won't work with non-local read concern. I don't know why and how can MongoDB guarantee the consistency in search results. ![Response of the AI bot from the MongoDB documentation page](https://i.sstatic.net/WxHXA5Kw.png) ![enter image description here](https://i.sstatic.net/8rNiRMTK.png) - **Cluster tier** : Dedicated M10 - **Node Type** : electable - **cluster** : 3 node replicaSet - **Mongodb version** : 7.0.14 - **pymongo** : 4.10.1 - **writeConcern** : majority - **readConcern** : majority - **read preference** : secondary I have not enabled workload-isolation; So,mongot and mongod services are running in each nodes of the replicaSet cluster. I think i need a help to understand the atlas search setup. Thanks in advance.
Asked by KR32 (101 rep)
Oct 22, 2024, 05:16 PM
Last activity: Oct 22, 2024, 05:24 PM