[SERVER-12947] Dont use MultipleErrorsOccurred path if all errors are the same Created: 27/Feb/14  Updated: 30/Jan/19  Resolved: 30/Jan/19

Status: Closed
Project: Core Server
Component/s: Sharding, Usability, Write Ops
Affects Version/s: 2.6.0-rc0
Fix Version/s: 4.1.8

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Janna Golden
Resolution: Done Votes: 0
Labels: 26qa, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-02-11
Participants:

 Description   

It would be better to just return the common error

{
        "REQUEST" : {
                "op" : "update",
                "args" : {
                        "updates" : [
                                {
                                        "q" : {
                                                "_id" : ObjectId("530fadb98e0e468e10a335f7"),
                                                "x" : {
                                                        "$xyz" : 1
                                                }
                                        },
                                        "u" : {
                                                "a" : 1
                                        }
                                }
                        ]
                }
        },
        "RESPONSE" : {
                "ok" : 1,
                "nModified" : 0,
                "n" : 0,
                "writeErrors" : [
                        {
                                "index" : 0,
                                "code" : 65,
                                "errInfo" : {
                                        "causedBy" : [
                                                {
                                                        "index" : 0,
                                                        "code" : 2,
                                                        "errmsg" : "unknown operator: $xyz"
                                                },
                                                {
                                                        "index" : 0,
                                                        "code" : 2,
                                                        "errmsg" : "unknown operator: $xyz"
                                                }
                                        ]
                                },
                                "errmsg" : "multiple errors for op : unknown operator: $xyz :: and :: unknown operator: $xyz"
                        }
                ]
        }
}



 Comments   
Comment by Githook User [ 30/Jan/19 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin'}

Message: SERVER-12947 Don't use MultipleErrorsPath if all errors are the same
Branch: master
https://github.com/mongodb/mongo/commit/186ebd7815238c15f1e5599da6a736e0e74f70ed

Comment by Kaloian Manassiev [ 24/Jan/19 ]

janna.golden, I am not sure what the "MultipleErrorsOccurred" path isĀ and this might as well be something that we got rid of, but can you please check with redbeard0531 and verify whether this is gone away, now that you are working in the write commands code.

Comment by Daniel Pasette (Inactive) [ 03/Mar/14 ]

I think the duplication is fine, but I would like to see the source of the error. That is, show the shard or host which produced the error.

Generated at Thu Feb 08 03:30:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.