Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50627

Handle nested shard key fields in ShardVersionMap construction

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • Sharding
    • None
    • ALL
    • Sharding 2020-09-07

    Description

      Shard keys containing dotted fields are not properly handled when constructing the ShardVersionMap: the [Min|Max]Key check function is only expecting a non-nested object potentially leading to ConflictingOperationError.

       

      That's an example of error raised following a refine shard key with nested fields:

      "error":"ConflictingOperationInProgress: Not all elements of { a: MinKey, b: { c: MinKey } } are of type minKey"
      

      Attachments

        Issue Links

          Activity

            People

              pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
              pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: