-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Component/s: CSOT
-
None
-
Needed
-
Summary
Update CSOT tests for change in dropIndex behavior in 8.3.
Context of when and why the failure occurred:
SERVER-90152 changed the behavior of dropIndex() to return ok:1 instead of an IndexNotFound error when the index does not exist. This causes various CSOT tests to fail because they are expecting the dropIndex to fail, for example:
https://github.com/mongodb/specifications/blob/e9ae09d/source/client-side-operations-timeout/tests/deprecated-options.yml#L3831-L3840
Example failing task:
[2025/08/08 13:27:05.742] FAILURE: AssertionError: Excepted error {'isClientError': False, 'isTimeoutError': False} but "dropIndex" succeeded: None () [2025/08/08 13:27:05.742] self = <test.asynchronous.test_csot.TestCsotDeprecatedOptions testMethod=test_maxTimeMS_is_ignored_if_timeoutMS_is_set_-_dropIndex_on_collection> [2025/08/08 13:27:05.742] async def test_case(self): [2025/08/08 13:27:05.742] > await self.run_scenario(spec) [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1463: [2025/08/08 13:27:05.742] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1403: in run_scenario [2025/08/08 13:27:05.742] await decorator(self._run_scenario)(spec, uri) [2025/08/08 13:27:05.742] test/asynchronous/utils.py:205: in wrapper [2025/08/08 13:27:05.742] raise e [2025/08/08 13:27:05.742] test/asynchronous/utils.py:199: in wrapper [2025/08/08 13:27:05.742] result = await target_func(*args, **kwargs) [2025/08/08 13:27:05.742] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1440: in _run_scenario [2025/08/08 13:27:05.742] await self.run_operations(spec["operations"]) [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:1248: in run_operations [2025/08/08 13:27:05.742] await self.run_entity_operation(op) [2025/08/08 13:27:05.742] test/asynchronous/unified_format.py:998: in run_entity_operation [2025/08/08 13:27:05.742] self.fail(f'Excepted error {expect_error} but "{opname}" succeeded: {result}') [2025/08/08 13:27:05.742] E AssertionError: Excepted error {'isClientError': False, 'isTimeoutError': False} but "dropIndex" succeeded: None
- is caused by
-
SERVER-90152 dropIndex() should be idempotent
-
- Closed
-
- is depended on by
-
JAVA-5941 dropIndex behavior change
-
- Blocked
-
- related to
-
JAVA-5941 dropIndex behavior change
-
- Blocked
-
-
PYTHON-5491 [Build Failure] dropIndex behavior change
-
- Ready for Work
-
- split to
-
CDRIVER-6081 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
CSHARP-5703 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
CXX-3329 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
GODRIVER-3640 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
JAVA-5945 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
NODE-7110 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
PHPLIB-1705 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
PYTHON-5496 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
RUBY-3697 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-
-
RUST-2260 Update CSOT tests for change in dropIndex behavior in 8.3
-
- Blocked
-