Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14199

Incorrect example for updateZoneKeyRange

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    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.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            spencer.brown@mongodb.com Spencer Brown
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 2 days ago