[SERVER-71139] Ensure indexes with simple collation are created correctly during initial sync Created: 07/Nov/22  Updated: 29/Oct/23  Resolved: 08/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.4, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Related
related to SERVER-71164 Data consistency checker should check... Closed
is related to SERVER-71225 Make sure collation.js does not chang... Closed
is related to SERVER-71166 Ensure we don't drop interesting data... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0, v5.0, v4.4, v4.2
Sprint: Repl 2022-11-14
Participants:
Linked BF Score: 148

 Description   

Add a test to cover the case where an index with (explicit) simple collation on a collection with a non-simple default collation is replicated in the cloning phase of logical initial sync. The index should be created with simple collation, not default collation.



 Comments   
Comment by Githook User [ 30/Nov/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-71139 Ensure indexes with simple collation are created correctly during initial sync
This changes the core collation test to leave its collections around after the test.
The initialsync core passthrough will then cover this scenario.

(cherry picked from commit dcd18cacc2d15c23c244aeb169c15a8753ae98db)
(cherry picked from commit 37c1feb59ee356cc0ab91873519c5cba00bc9115)
Branch: v6.0
https://github.com/mongodb/mongo/commit/0784db07f2675986be279504d493d9969b1311c0

Comment by Matthew Russotto [ 11/Nov/22 ]

In any backports, be sure to backport also SERVER-71225

Comment by Moustafa Maher [ 11/Nov/22 ]

We need mongosync to start picking up the new version of this test to replicate the data generated by that test.

Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-71139 Ensure indexes with simple collation are created correctly during initial sync
This changes the core collation test to leave its collections around after the test.
The initialsync core passthrough will then cover this scenario.
Branch: master
https://github.com/mongodb/mongo/commit/dcd18cacc2d15c23c244aeb169c15a8753ae98db

Comment by Matthew Russotto [ 07/Nov/22 ]

We should add creation of the simple-collation index on a non-simple-collation collection as a jscore test picked up by the initial sync passthrough, not as a targeted initial sync test.

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