[CXX-2785] Avoid Appending Write/Read Concern in Atlas Search Index Helper Commands Created: 08/Nov/23  Updated: 12/Dec/23  Resolved: 08/Nov/23

Status: Closed
Project: C++ Driver
Component/s: Index Management
Affects Version/s: None
Fix Version/s: 3.9.0

Type: Bug Priority: Unknown
Reporter: PM Bot Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2761 Avoid Appending Write/Read Concern in... Implementing
Related
is related to CXX-2697 Add search index management helpers Closed
Epic Link: Ability to create and manage Atlas search indexes
Quarter: FY24Q4
Upstream Changes Summary:

DRIVERS-2761:
Summary

Confirm that write/read concern are not applied to Atlas Search Index Helper commands. This is the previously expected behavior, but was previously untested. If write/read concern are applied, omit them to avoid errors from Atlas.

References

New specification tests and prose tests are added in: https://github.com/mongodb/specifications/commit/0b47194538aa817978fae0f77f684f6d5e62ebab
An implementation of the tests and fix in the C++ driver are available here: https://github.com/mongodb/mongo-cxx-driver/pull/1055 with a test follow-up here: https://github.com/mongodb/mongo-cxx-driver/pull/1069


 Description   

This ticket was split from DRIVERS-2761, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 12/Dec/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CXX-2785 use read concern majority in test (#1069)

read concern local is accepted for aggregate with $listSearchIndexes. To avoid a false positive test, use read concern majority. If the read concern is incorrectly applied to the command, Atlas will return an error.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/198894ad2b73a1595e63126b6f8c4f088a185ce3

Comment by Githook User [ 08/Nov/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CXX-2785 do not apply `readConcern` or `writeConcern` to search index commands (#1055)

  • add regression specification tests
  • apply default read/write concerns to search index operations

Apply the default read and write concern. The default read and write concern is not
sent in the outgoing command.

Generated at Wed Feb 07 22:07:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.