[SERVER-12083] Mongostat throws repeatedly with bad auth + discover combo Created: 13/Dec/13  Updated: 10/Dec/14  Resolved: 19/Dec/13

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.5.4
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates TOOLS-34 mongostat --discover fails with "Ass... Closed
Related
Operating System: ALL
Participants:

 Description   

running the following produces an error when the server is running with auth and a user forgets to provide username and password and uses discover

mongostat --host bigbrock.local --port 4000 --discover

connected to: bigbrock.local:4000
Fri Dec 13 10:58:05.695 Assertion: 13111:field not found, expected type 2
0x10ce5ca80 0x10ce31ffa 0x10ce31f3c 0x10c96fe3d 0x10c9747ed 0x10c976f76 0x10c976f32 0x10ce94ce1 0x7fff9001f899 0x7fff9001f72a 0x7fff90023fc9 
 0   mongostat                           0x000000010ce5ca80 _ZN5mongo15printStackTraceERSo + 64
 1   mongostat                           0x000000010ce31ffa _ZN5mongo11msgassertedEiPKc + 186
 2   mongostat                           0x000000010ce31f3c _ZN5mongo11msgassertedEiRKSs + 12
 3   mongostat                           0x000000010c96fe3d _ZNK5mongo11BSONElement3chkEi + 813
 4   mongostat                           0x000000010c9747ed _ZN5mongo4Stat12serverThreadEN5boost10shared_ptrINS0_11ServerStateEEEi + 2109
 5   mongostat                           0x000000010c976f76 _ZN5boost3_bi5list2INS0_5valueINS_10shared_ptrIN5mongo4Stat11ServerStateEEEEENS2_IiEEEclIPFvS7_iENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 54
 6   mongostat                           0x000000010c976f32 _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvNS_10shared_ptrIN5mongo4Stat11ServerStateEEEiENS2_5list2INS2_5valueIS8_EENSC_IiEEEEEEE3runEv + 34
 7   mongostat                           0x000000010ce94ce1 thread_proxy + 177
 8   libsystem_pthread.dylib             0x00007fff9001f899 _pthread_body + 138
 9   libsystem_pthread.dylib             0x00007fff9001f72a _pthread_struct_init + 0
 10  libsystem_pthread.dylib             0x00007fff90023fc9 thread_start + 13



 Comments   
Comment by Daniel Pasette (Inactive) [ 19/Dec/13 ]

duplicate of SERVER-10465

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