A write to a secondary node fails with the following:
WriteResult({ "writeError" : { "code" : undefined, "errmsg" : "not master" } })
There should be a a defined code for every error.
If the code is "undefined", then omit it from the writeError.
- related to
-
SERVER-14601 All "not master" errors should use the same error code
- Closed