[DOCS-13540] Investigate changes in SERVER-46084: Don't use $setUnion in aggregation for finding inconsistent sharded indexes Created: 24/Mar/20  Updated: 13/Nov/23  Due: 10/Apr/20  Resolved: 08/Apr/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.2.6, 4.7.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-46084 Don't use $setUnion in aggregation fo... Closed
Duplicate
is duplicated by DOCS-13360 Investigate changes in SERVER-44916: ... Closed
Participants:
Days since reply: 3 years, 42 weeks, 1 day ago
Epic Link: DOCS: 4.4 Server Release Work

 Description   

Description

Downstream Change Summary

This ticket updated and finalized the aggregation pipeline we expect users to run to verify the indexes for a sharded collection are correct across all shards that was initially added by SERVER-44916. The pipeline is written out in full in this jstest: https://github.com/mongodb/mongo/blob/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d/jstests/sharding/index_stats_pipeline_detects_inconsistent_indexes.js#L20-L72

Description of Linked Ticket

The aggregation added in SERVER-44916 and used in SERVER-45389 to find inconsistent sharded indexes relies on $setUnion providing a consistent ordering, which is not supported. Instead, the pipeline will only consider fields known to be important, like name, key, and expireAfterSeconds untilĀ SERVER-29425 adds a supported way to sort an array.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 21/Apr/20 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-13540: agg pipeline to find inconsistent indexes for sharded collection
Branch: v4.2
https://github.com/mongodb/docs/commit/ad0166311aa09c39c0549a852bc5c20d3b70b916

Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-13540: agg pipeline to find inconsistent indexes for sharded collection
Branch: v4.2.6
https://github.com/mongodb/docs/commit/19035fa33acf413783981daf88f7a0ccae62dd45

Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-13540: agg pipeline to find inconsistent indexes for sharded collection
Branch: master
https://github.com/mongodb/docs/commit/c5a3c5ddad6689864227d2c2fa0626884dc0dc0a

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