[SERVER-78995] Allow users to hide the last compatible hashed shard key index Created: 14/Jul/23  Updated: 14/Jul/23  Resolved: 14/Jul/23

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

Type: Task Priority: Major - P3
Reporter: Ali Mir Assignee: Ali Mir
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-78253 Allow folks with hashed shard keys to... Closed
Sprint: Sharding NYC 2023-07-24
Participants:

 Description   

We currently don't allow users to hide an index if it’s the last shard key compatible index. With the change in SERVER-78253 to allow users to drop the last compatible hashed shard key index, we should allow users to hide them as well.

There is no test coverage for hiding shard key indexes, so this ticket should add a few test cases for this as well (for hashed shard key indexes and ranged shard key indexes).



 Comments   
Comment by Ali Mir [ 14/Jul/23 ]

The work for this was included in SERVER-78253 (just because the check for hiding an index versus dropping an index uses the same helper function). I added test coverage for this in that ticket.

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