[DOCS-14199] Incorrect example for updateZoneKeyRange Created: 07/Feb/21  Updated: 08/Feb/21  Resolved: 08/Feb/21

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Spencer Brown Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File repro.js    
Issue Links:
Duplicate
Participants:
Days since reply: 3 years, 2 days ago

 Description   

Description

On this doc page, the example starting at "If you wanted to create a range on values of b only, you must specify the entire range of a when creating ranges." is wrong. If you try this you will get an overlapping ranges error.

Please find attached a short mongo shell script that demonstrates the example, it fails on the last command with

"Zone range: { a: MinKey, b: 10.0 } -->> { a: MaxKey, b: 20.0 }  on  beta is overlapping with existing: { a: MinKey, b: 1.0 } -->> { a: MaxKey, b: 10.0 }  on  alpha"

Suggest removing the example, as it is not possible to create a range of values on b only with this shard key. 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

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



 Comments   
Comment by Jeffrey Allen [ 08/Feb/21 ]

Duplicate of DOCSP-14387.

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