[SERVER-21099] Improve logging in SecureRandom and PseudoRandom classes Created: 23/Oct/15 Updated: 01/Dec/15 Resolved: 06/Nov/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.8, 3.2.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alexander Komyagin | Assignee: | Spencer Jackson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Backport Completed: | |
| Sprint: | Security A 10/09/15, Security B 10/30/15, Security C 11/20/15 |
| Participants: |
| Description |
|
Observed on a running standalone, 3.0.7 enterprise, RHEL7: http://repo.mongodb.com/yum/redhat/7/mongodb-enterprise/3.0/x86_64/RPMS/mongodb-enterprise-server-3.0.7-1.el7.x86_64.rpm
|
| Comments |
| Comment by Githook User [ 06/Nov/15 ] |
|
Author: {u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}Message: |
| Comment by Githook User [ 29/Oct/15 ] |
|
Author: {u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}Message: |
| Comment by Andrew Morrow (Inactive) [ 27/Oct/15 ] |
|
The SecureRandom class "logs" by writing to std::cerr. This can make it difficult to understand crashes caused by resource exhaustion preventing opening /dev/urandom. Since we are already doing work in the random facility under |
| Comment by Alexander Komyagin [ 23/Oct/15 ] |
|
can we just change the way those errors are logged? |
| Comment by Andrew Morrow (Inactive) [ 23/Oct/15 ] |
|
We have some planned work here coming up in |
| Comment by Alexander Komyagin [ 23/Oct/15 ] |
|
stderr doesn't get captured afaik. I thought mongod is not supposed to log into stderr if --logpath is specified..? |