-
Type:
Build Failure
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Python Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
Name of Failure:
test_indexes_same_keys_different_collations
Link to task:
Context of when and why the failure occurred:
SERVER-89953 causes list_indexes to no longer exclude the {locale: "simple"} parameter.
Stack trace:
[2026/04/16 08:27:54.761] FAILURE: AssertionError: 'collation' unexpectedly found in {'v': 2, 'key': [('fieldname', 1)], 'collation': SON([('locale', 'simple')])} () [2026/04/16 08:27:54.761] self = <test.asynchronous.test_collation.TestCollation testMethod=test_indexes_same_keys_different_collations> [2026/04/16 08:27:54.761] async def test_indexes_same_keys_different_collations(self): [2026/04/16 08:27:54.761] await self.db.test.drop() [2026/04/16 08:27:54.761] usa_collation = Collation("en_US") [2026/04/16 08:27:54.761] ja_collation = Collation("ja") [2026/04/16 08:27:54.761] await self.db.test.create_indexes( [2026/04/16 08:27:54.761] [ [2026/04/16 08:27:54.761] IndexModel("fieldname", collation=usa_collation), [2026/04/16 08:27:54.761] IndexModel("fieldname", name="japanese_version", collation=ja_collation), [2026/04/16 08:27:54.761] IndexModel("fieldname", name="simple"), [2026/04/16 08:27:54.761] ] [2026/04/16 08:27:54.761] ) [2026/04/16 08:27:54.761] indexes = await self.db.test.index_information() [2026/04/16 08:27:54.761] self.assertEqual( [2026/04/16 08:27:54.761] usa_collation.document["locale"], indexes["fieldname_1"]["collation"]["locale"] [2026/04/16 08:27:54.761] ) [2026/04/16 08:27:54.761] self.assertEqual( [2026/04/16 08:27:54.761] ja_collation.document["locale"], indexes["japanese_version"]["collation"]["locale"] [2026/04/16 08:27:54.761] ) [2026/04/16 08:27:54.761] > self.assertNotIn("collation", indexes["simple"]) [2026/04/16 08:27:54.761] E AssertionError: 'collation' unexpectedly found in {'v': 2, 'key': [('fieldname', 1)], 'collation': SON([('locale', 'simple')])} [2026/04/16 08:27:54.761] test/asynchronous/test_collation.py:260: AssertionError