[SERVER-35527] Ignore session information on the embedded version of mongod Created: 11/Jun/18 Updated: 29/Oct/23 Resolved: 11/Jun/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.0-rc5, 4.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | Jack Mulrow |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v4.0
|
||||
| Sprint: | Sharding 2018-06-18 | ||||
| Participants: | |||||
| Description |
|
When requests with a session id are parsed, the id is vivified in the LogicalSessionCache decoration. The embedded storage engine does not set up the LogicalSessionCache (the decoration is a null pointer), so sending a session id to mongoed triggers a segmentation fault when LogicalSessionCache::vivify is called. Since session based behavior can't work without the cache, any session information received when there is no LogicalSessionCache should just be ignored, avoiding the crash. This is a required change for |
| Comments |
| Comment by Githook User [ 11/Jun/18 ] |
|
Author: {'username': 'jsmulrow', 'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com'}Message: (cherry picked from commit 7070ff68a75f10a906c0b0cdbbf50697ec1372c2) |
| Comment by Githook User [ 11/Jun/18 ] |
|
Author: {'username': 'jsmulrow', 'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com'}Message: |