[SERVER-22007] List all commands via HTTP console crashes server Created: 23/Dec/15 Updated: 25/Jan/17 Resolved: 06/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | HTTP Console, Stability |
| Affects Version/s: | 3.2.0 |
| Fix Version/s: | 3.2.3, 3.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Phil | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | code-and-test | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Operating System: | Linux |
| Backport Completed: | |
| Steps To Reproduce: | Click on the "List all commands" link on the mongod webui |
| Sprint: | Sharding E (01/08/16) |
| Participants: |
| Description |
|
A rest enabled mongod will crash whenever you click on the "List all commands" link on the mongod webui
|
| Comments |
| Comment by Githook User [ 29/Jan/16 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}Message: (cherry picked from commit 8ae053a4d9c5bd2672140964e7f09bd6b734dbdc) |
| Comment by Githook User [ 05/Jan/16 ] |
|
Author: {u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}Message: |
| Comment by Andy Schwerin [ 23/Dec/15 ] |
|
Also, the problem should always manifest the second time that the "List all commands" is clicked. |
| Comment by Andy Schwerin [ 23/Dec/15 ] |
|
The problem is that the "dbwebserver" isn't calling LastError::startRequest() on its client's LastError object when processing new requests. This probably should happen as part of building a new OperationContext, rather than every place where a request begins, but if that fix proves complicated, it would suffice to add the startRequest call to the top of DBWebServer::doRequest (just after the OperationContext is created). |
| Comment by Phil [ 23/Dec/15 ] |
|
Sometimes it requires you to click the link twice or just refresh the page |