[SERVER-14843] Can't sniff with mongosniff without causing a coredump Created: 09/Aug/14 Updated: 11/Jul/16 Resolved: 03/Sep/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | 2.4.11, 2.6.4, 2.7.5 |
| Fix Version/s: | 2.7.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Juan Berner | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 0 |
| Labels: | cap-ticket-needed, community-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongosniff tool |
||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Steps To Reproduce: | Just install mongo sniff the following way: git clone https://github.com/mongodb/mongo.git And execute ./mongosniff in a mongo 2.6.3 server I have tested it in ubuntu 12.04 and Red Hat Enterprise Linux Server release 6.3 (Santiago) |
||||
| Participants: | |||||
| Description |
|
I'm trying to sniff mongo traffic from a server with version 2.6.3 with a 2.6.3 mongosniff version and have the following result when a command is sent to the mongo server.
Thanks! |
| Comments |
| Comment by Githook User [ 03/Sep/14 ] |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: |
| Comment by Matt Kangas [ 29/Aug/14 ] |
|
This is a side effect of The "Steps to reproduce" above indicate that the submitter actually built mongosniff from master, not 2.6.3. |
| Comment by Juan Berner [ 09/Aug/14 ] |
|
I solved the issue changing the code in src/mongo/db/dbmessage.h, added a return true to function messageShouldHaveNs bool messageShouldHaveNs() const { return true; return (_msg.operation() >= dbMsg) & (_msg.operation() <= dbDelete); }And after compiling it its working fine. Thanks! |
| Comment by Juan Berner [ 09/Aug/14 ] |
|
The mongo version is: [root@e-00006b32 mongo]# mongod --version |