Updates and deletes reset the last error, inserts do not. This can result, amongst other things, in an error which is not cleared and repeatedly reported via mongos.
See test case attached.
- is related to
-
SERVER-4532 GetLastError on sharded cluster can report incorrect result
- Closed
-
SERVER-7958 GLE on sharded cluster can return previous operation's lastError
- Closed
-
SERVER-7967 In sharded clusters on failed insert GLE sometimes returns null err field
- Closed