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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc1, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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

      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@mongodb.com Anton Korshunov
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: