[SERVER-69781] Investigate whether functions in global_index_ddl_util should return a bool or throw Created: 16/Sep/22  Updated: 29/Oct/23  Resolved: 13/Oct/22

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

Type: Task Priority: Major - P3
Reporter: Allison Easton Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: PM-2583-Milestone-3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-10-17
Participants:

 Description   

The functions in global_index_ddl_util will currently return false if the version is older than the one found on disk. This return value is currently not being used. We should investigate whether it is better to simply throw an error. These checks should not be hit by secondaries, so throwing would allow the command to fail on primaries and have the ddl coordinator handle it.



 Comments   
Comment by Githook User [ 13/Oct/22 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-69781 Remove return type on sharding global indexes catalog ddl util functions
Branch: master
https://github.com/mongodb/mongo/commit/364c9a1c333bfed83aa514fbd08adf767d040277

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