[SERVER-41551] Move check for empty string as index key value to catalog validation Created: 05/Jun/19  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Xin Hao Zhang (Inactive) Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: index-version
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 Description   

The next time we bump index version, move the check added by SERVER-41263 that disallows empty strings as new index key values from the createIndexes command layer to the catalog validation layer, gated by the new index version.



 Comments   
Comment by Craig Homa [ 20/Jun/19 ]

This is referring to key patterns like

{a: ''}

We disallowed the creation of indexes with key patterns like this in 4.2 but there still could be indexes like this sitting around in old data files.

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