[SERVER-76077] Existing 'bucketSize' field in index spec from removed haystack index prevents server startup Created: 13/Apr/23  Updated: 29/Oct/23  Resolved: 14/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 7.1.0-rc0, 6.0.6

Type: Bug Priority: Blocker - P1
Reporter: Henrik Edin Assignee: Backlog - Storage Execution Team
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-51871 Remove remaining code relating to hay... Closed
Related
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Execution Team 2023-04-17
Participants:

 Description   

SERVER-59805 added the ability to use collMod to remove invalid index specs. However, we currently have no way of starting up the server when invalid index specs are found other than using a special fail point.

--repair is also unable to handle this case.

We need to provide an upgrade path for users with invalid index spec fields.



 Comments   
Comment by Githook User [ 14/Apr/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-76077 Allow server to startup with 'bucketSize' field in index spec

(cherry picked from commit 5488f63526dc5acd9ef4b061074dc46ecf7d45de)
Branch: v6.0
https://github.com/mongodb/mongo/commit/bf357fbf76d28bfbdecb5a10ab8a87c5f1a37b8d

Comment by Githook User [ 14/Apr/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-76077 Allow server to startup with 'bucketSize' field in index spec

(cherry picked from commit 5488f63526dc5acd9ef4b061074dc46ecf7d45de)
Branch: v7.0
https://github.com/mongodb/mongo/commit/3af48aa69cb8f375f154914499f96e6d7bd8d92e

Comment by Githook User [ 14/Apr/23 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-76077 Allow server to startup with 'bucketSize' field in index spec
Branch: master
https://github.com/mongodb/mongo/commit/5488f63526dc5acd9ef4b061074dc46ecf7d45de

Comment by Louis Williams [ 14/Apr/23 ]

We drop all haystack indexes when upgrading from 4.4 to 5.0, so this issue only affects non-haystack indexes that incorrectly specify a 'bucketSize' field, which would have been ignored in previous versions.

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