Update to shard key can fail when a 16 MB document contains $ fields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • Hide

      See repro.js

      Show
      See repro.js
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-110497 we supported $-prefixed fields in shard key updates by wrapping them into $eq or $getFields.

      However, if the document is close to our 16 MB size limit, this extra wrappers can take it over the edge and the update will fail.

            Assignee:
            Unassigned
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: