[SERVER-19950] db.serverStatus({repl:1}) hangs indefinitely Created: 14/Aug/15  Updated: 19/Sep/15  Resolved: 21/Aug/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.1.6
Fix Version/s: 3.1.8

Type: Bug Priority: Major - P3
Reporter: Allison Reinheimer Moore Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-4845 rename of db.serverStatus output file Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

1. Make a replica set.
2. Run db.serverStatus(

{repl:1}

)
3. Wait for a reasonable amount of time, then kill off the mongo shell from another shell, since you can't control-C out.

Sprint: RPL 8 08/31/15
Participants:

 Description   

I've been attempting to run db.serverStatus({repl:1}) as part of DOCS-4845, and whenever I do, it hangs. I'm running a two member replica set on 3.1.6, with a 3.1.6 shell. I don't have any startup warnings, beyond suggesting I disable THP.

mattd@10gen.com suggested I should file a ticket.

This happens on both Amazon Linux and OS X.



 Comments   
Comment by Githook User [ 21/Aug/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-19950: serverStatus(

{repl:1}

)
Branch: master
https://github.com/mongodb/mongo/commit/40fb53421a35f2401d8412f553091559381e1184

Comment by Eric Milkie [ 14/Aug/15 ]

Looks like we are calling isV1ElectionProtocol() in appendSlaveInfoData() with the mutex already locked, so it's a self-deadlock. Line 1579 of replication_coordinator_impl.cpp. We should make a test that exercises this part of serverStatus as well.

Comment by Eric Milkie [ 14/Aug/15 ]

It seems to hang my mongod when I try it. Looks like a deadlock in replication.

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