[SERVER-59426] Do not mix collations during change stream rewrites Created: 18/Aug/21  Updated: 29/Oct/23  Resolved: 30/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Justin Seyster
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-59840 Make change stream mixed-collator che... Closed
is related to SERVER-59660 Allow change stream rewrites for $mat... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2021-09-06
Participants:

 Description   

$match stages appended to a change stream pipeline can use a custom collation for comparisons, but the oplog scan always uses the simple collation (see SERVER-31443). When performing rewrites, we must check whether the pipeline collation is non-simple; if so, we must abandon the attempt to rewrite the filters, since these may be more restrictive than the originals. For instance, {$match: {"documentKey.field": "blah"}} with a case-insensitive collation should match both "blah" and "BLAH", but rewriting this into the oplog will only return exact matches on "blah".



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 28/Aug/21 ]

Author:

{'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com', 'username': 'jseyster'}

Message: SERVER-59426 Do not mix collations during change stream rewrites
Branch: master
https://github.com/mongodb/mongo/commit/1ef4569aaefdfb19bf0a7dc43d82f2eb3e160ee9

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