[SERVER-816] auth/pairing failure Created: 23/Mar/10  Updated: 12/Jul/16  Resolved: 31/Mar/10

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

<http://buildbot.mongodb.org/builders/Linux%2064-bit%20Legacy/builds/491/steps/test_2/logs/stdio>



 Comments   
Comment by Eliot Horowitz (Inactive) [ 31/Mar/10 ]

not needed because of SERVER-824

Comment by Aaron Staple [ 31/Mar/10 ]

(it's not limited to the auth/pairing context)

Comment by Aaron Staple [ 31/Mar/10 ]

If you're not worried about it I won't fix. Just to be clear - if we were running the parallel tests with old boost we'd probably see frequent failures like this one.

Comment by Eliot Horowitz (Inactive) [ 30/Mar/10 ]

only if it takes < 10 minutes and adds little to no code.
we're probably going to switch from boost to pthread

Comment by auto [ 30/Mar/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-816 cleaning
http://github.com/mongodb/mongo/commit/691de0d1ba21a0b53a17684414021c709eda7c2d

Comment by Aaron Staple [ 30/Mar/10 ]

The problem is that atleastreadlock is unsafe when using the version of MongoMutex for old boost that doesn't support shared locks. The atleastreadlock constructor assumes that getState() is thread safe and represents the state for the current thread. But in this version of MongoMutex getState() just tells if somebody has a lock.

Let me know if you want me to fix (and backport?)

Comment by Aaron Staple [ 30/Mar/10 ]

Argh, this is running in no readlock compatability mode...didn't notice that before.

Comment by Aaron Staple [ 29/Mar/10 ]

<http://buildbot.mongodb.org/builders/Linux%2064-bit%20Legacy/builds/508/steps/test_2/logs/stdio>

Comment by Aaron Staple [ 24/Mar/10 ]

have a lock, then don't have it...weird

m31001| Tue Mar 23 12:29:42 admin.system.users Assertion failure lockState db/client.cpp 109
m31002| Tue Mar 23 12:29:42 repl: sleep 2sec before next pass
m31001| 0x4dc5a8 0x4e415d 0x5f703c 0x5c9ca7 0x5fa32a 0x58ca99 0x65150b 0x652563 0x53633f 0x538f1a 0x5d087a 0x5d3c8f 0x67f7a2 0x690307 0x68ff0f 0x3ceea062f7 0x3ceded0fbd
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo12sayDbContextEPKc+0xe8) [0x4dc5a8]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo8assertedEPKcS1_j+0x15d) [0x4e415d]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo6Client7Context11_finishInitEb+0x2dc) [0x5f703c]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo7Helpers12getSingletonEPKcRNS_7BSONObjE+0xa7) [0x5c9ca7]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo18AuthenticationInfo26_isAuthorizedSpecialChecksERKSs+0x1ba) [0x5fa32a]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo11CmdIsMaster3runEPKcRNS_7BSONObjERSsRNS_14BSONObjBuilderEb+0x129) [0x58ca99]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x8db) [0x65150b]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x5d3) [0x652563]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x3f) [0x53633f]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpE+0x146a) [0x538f1a]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod [0x5d087a]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERK11sockaddr_in+0xedf) [0x5d3c8f]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZN5mongo10connThreadEv+0x212) [0x67f7a2]
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod(_ZNK5boost9function0IvSaINS_13function_baseEEEclEv+0xa7) [0x690307]
assert: assert failed : command ismaster failed
Tue Mar 23 12:29:42 JS Error: uncaught exception: assert failed : command ismaster failed
failed to load: /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/jstests/repl/pair7.js
m31000| Tue Mar 23 12:29:42 got kill or ctrl c signal 15 (Terminated), will terminate after current cmd ends
m31000| Tue Mar 23 12:29:42 now exiting
m31000| Tue Mar 23 12:29:42 dbexit:
m31000| Tue Mar 23 12:29:42 shutdown: going to close listening sockets...
m31000| Tue Mar 23 12:29:42 going to close listening socket: 18
m31000| Tue Mar 23 12:29:42 shutdown: going to flush oplog...
m31000| Tue Mar 23 12:29:42 shutdown: going to close sockets...
m31000| Tue Mar 23 12:29:42 shutdown: waiting for fs preallocator...
m31000| Tue Mar 23 12:29:42 shutdown: closing all files...
m31000| Tue Mar 23 12:29:42 closeAllFiles() finished
m31000| Tue Mar 23 12:29:42 shutdown: removing fs lock...
m31000| Tue Mar 23 12:29:42 dbexit: really exiting now
m31001| /home/yellow/buildbot_slave/Linux_64bit_Legacy/mongo/mongod [0x68ff0f]
m31001| /lib64/libpthread.so.0 [0x3ceea062f7]
m31001| /lib64/libc.so.6(clone+0x6d) [0x3ceded0fbd]
m31001| Tue Mar 23 12:29:43 repl: from host:127.0.0.1:31002

Generated at Thu Feb 08 02:55:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.