[SERVER-11669] Swallow "norepl" errors in the shell helpers for user and role management Created: 12/Nov/13  Updated: 10/Dec/14  Resolved: 04/Dec/13

Status: Closed
Project: Core Server
Component/s: Replication, Security, Shell
Affects Version/s: 2.5.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-10266 Support GLE with w:majority in master... Closed
is related to SERVER-11733 Add a writeConcern mode that works on... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Some node types such as config servers and master/slave setups will return "norepl" from calls to getLastError with "w":"majority.
This means that any time a user management command is run with a "majority" write concern, the command reports failure with a "norepl" error, even though the command actually succeeded.
Ideally w: "majority" would have a well-defined meaning for all cluster and node types, but barring that we should swallow "norepl" errors in the shell helpers for user and role management so users are less likely to see these (harmless) error messages. We already do this for the addUser/createUser shell helpers, so we just need to do this for the remaining user and role management helpers.



 Comments   
Comment by Spencer Brody (Inactive) [ 04/Dec/13 ]

Rather than doing this, we're going to make w: "majority" work for all node types, according to SERVER-10266 and SERVER-11959.

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