[SERVER-17888] FreeBSD mongod/mongos terminate when Clients Disconnect Created: 04/Apr/15 Updated: 09/Oct/15 Resolved: 09/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability |
| Affects Version/s: | 3.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nagy | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
|||||||||||||||||||||||||||||||||||||||||
| Operating System: | FreeBSD | |||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: | Start the config servers on three machines:
Then start mongos on the same machines with:
This crashes all previously started mongod instances with:
|
|||||||||||||||||||||||||||||||||||||||||
| Participants: | ||||||||||||||||||||||||||||||||||||||||||
| Description |
|
I'm trying to set up a sharded mongodb instance with 3.0.1 on FreeBSD 10/amd64, without success. mongod crashes when mongos try to connect to it. |
| Comments |
| Comment by Andrew Aldridge [ 08/Oct/15 ] | |||||||||||||||||||||||||||||||||
|
After backporting 014d0c666ec15e819ad2bedf32a850ae29ede26e to the v3.0 branch and building on FreeBSD 10.2, I haven't yet been able to reproduce this crash. Marking as a duplicate of | |||||||||||||||||||||||||||||||||
| Comment by Daniel Pasette (Inactive) [ 29/Sep/15 ] | |||||||||||||||||||||||||||||||||
|
The "catch (SocketException& e)" in handleIncomingMsg() ought to be catching that exception. Figuring out why that isn't happening is the key to debugging this. Maybe FreeBSD has a bug in their C++ library? | |||||||||||||||||||||||||||||||||
| Comment by Lorenzo P. [ 27/Sep/15 ] | |||||||||||||||||||||||||||||||||
|
Hi, it would be encouraging to see some progress on this issue. This is most probably the number one reason why we're still waiting for a 3.x port in the ports tree. | |||||||||||||||||||||||||||||||||
| Comment by Kaspars Bankovskis [ 27/Aug/15 ] | |||||||||||||||||||||||||||||||||
|
to make it more clear - issue is not limited only to the specific use case described above. I reproduced it in the simplest setup, by starting mongod (mongod --dbpath /path/to/empty/dir) and connecting with mongo shell from another terminal. | |||||||||||||||||||||||||||||||||
| Comment by Kaspars Bankovskis [ 27/Aug/15 ] | |||||||||||||||||||||||||||||||||
|
Any progress with this issue? The problem is still present with mongodb v3.0.6 when compiled on FreeBSD 10.2 amd64. | |||||||||||||||||||||||||||||||||
| Comment by Sam Kleinman (Inactive) [ 13/Apr/15 ] | |||||||||||||||||||||||||||||||||
|
Thanks for this data. I've retitled the ticket slightly, and we'll continue to investigate. | |||||||||||||||||||||||||||||||||
| Comment by Nagy [ 06/Apr/15 ] | |||||||||||||||||||||||||||||||||
|
I've tried mongodb 3 on at least five machines until now, memory ranging from 4G to 32, nothing else runs.
First, I've tried to set up a sharded replica set setup, I don't know whether those processes involve disconnect or not, And yes, connecting and disconnecting with the mongo shell is enough to get the crash. mongod crashes when I disconnect. If you send me an ssh public key privately, I can give you an account where you can try this if you don't have a FreeBSD box at hand. | |||||||||||||||||||||||||||||||||
| Comment by Sam Kleinman (Inactive) [ 06/Apr/15 ] | |||||||||||||||||||||||||||||||||
|
To help us begin to debug this issue, would you be able to provide some additional information:
Sorry about this, and I hope we can get this sorted out quickly. Cheers, | |||||||||||||||||||||||||||||||||
| Comment by Nagy [ 05/Apr/15 ] | |||||||||||||||||||||||||||||||||
|
I've started a single mongod instance and connected to it with a pymongo program. I can insert documents, but when the client disconnects, mongod dies with the same error, so it has nothing to do with mongos. |