[DRIVERS-2797] Search index management operations fail with a different error message Created: 18/Dec/23  Updated: 20/Dec/23

Status: Implementing
Project: Drivers
Component/s: Index Management
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Neal Beeken Assignee: Kevin Albertson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to CDRIVER-4799 Search index management operations fa... Closed
split to CSHARP-4890 Search index management operations fa... Closed
split to CXX-2799 Search index management operations fa... Closed
split to GODRIVER-3074 Search index management operations fa... Closed
split to MOTOR-1227 Search index management operations fa... Closed
split to NODE-5799 Search index management operations fa... Closed
split to PHPLIB-1327 Search index management operations fa... Closed
split to PYTHON-4111 Search index management operations fa... Closed
split to RUBY-3362 Search index management operations fa... Closed
split to RUST-1812 Search index management operations fa... Closed
split to JAVA-5273 Search index management operations fa... Scheduled
Problem/Incident
is caused by SERVER-83290 Move $search and $vectorSearch source... Closed
Related
related to DRIVERS-2794 Update $listSearchIndexes test in Sea... Backlog
Driver Changes: Needed - No Spec Changes
Downstream Changes Summary:

Sync Index Management tests to this commit to resolve test failures on MongoDB server 7.3.0 latest builds:
https://github.com/mongodb/specifications/commit/6943ba1ac430753f90340b042f0022b61bc0b041

Start date:
Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4799 Fixed 1.26.0, 1.25.4
CXX-2799 Fixed 3.10.0, 3.9.1
CSHARP-4890 Done 2.24.0
GODRIVER-3074 Done
JAVA-5273 Scheduled
NODE-5799 Fixed 6.4.0
MOTOR-1227 Duplicate
PYTHON-4111 Fixed 4.7
PHPLIB-1327 Fixed 1.17.1
RUBY-3362 Fixed 2.20.0
RUST-1812 Fixed 3.0.0

 Description   

Summary

Starting with at least server version 7.3.0-alpha-864-g8ff75de, the error message returned for search index operations when not running on Atlas has changed, making search index spec test cases in the index-management directory fail.

Example: https://github.com/mongodb/specifications/blob/0b47194538aa817978fae0f77f684f6d5e62ebab/source/index-management/tests/createSearchIndex.yml#L34

  • Expectation: "Search index commands are only supported with Atlas"
  • Actual: "Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment to enable. For more information on how to connect, see https://dochub.mongodb.org/core/atlas-cli-deploy-local-reqs."

Motivation

Who is the affected end user?

Drivers running the current spec tests against the latest server

How does this affect the end user?

Tests will fail, they need to be skipped or corrected to check for the new error message.

How likely is it that this problem or use case will occur?

Every time the tests are run on the new server version.

If the problem does occur, what are the consequences and how severe are they?

CI is red for the affected server versions.

Is this issue urgent?

Moderately

Is this ticket required by a downstream team?

No

Is this ticket only for tests?

It is only for tests, all drivers will want to sync the change that makes tests start passing again.

Acceptance Criteria

  • Update the test assertions to pass for server versions before and after the message was changed.
    • Both error messages contain: "Atlas"


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

Author:

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

Message: DRIVERS-2797 Check for substring in Index Management error asserts (#1485)
Branch: master
https://github.com/mongodb/specifications/commit/6943ba1ac430753f90340b042f0022b61bc0b041

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