Fix $merge mode 'whenNotMatched:fail' to send updates to mongos

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0-rc1, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Hide

      Attached JS test to reproduce the issue

      Show
      Attached JS test to reproduce the issue
    • Query 2019-06-17
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The 'makeStrictUpdateStrategy()' in document_source_merge.cpp is using 'updateWithStatus()' to do updates. The 'updateWithStatus()' is not implemented in 'MongoInterfaceShardServer'. So it ends up calling the method from its parent class 'MongoInterfaceStandalone'. We need to fix this by implementing 'updateWithStatus()' in 'MongoInterfaceShardServer'

      We have also noticed that, when source is unsharded and target is sharded, mongos throws this error message instead of the original message of shard. We need to verify that it is not the case after the fix.

              Assignee:
              Anton Korshunov
              Reporter:
              Arun Banala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: