[SERVER-4138] Mongo crashes in windows if database name is a reserved file name Created: 24/Oct/11 Updated: 11/Jul/16 Resolved: 07/May/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.1.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Yann Schwartz | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Operating System: | Windows |
| Participants: |
| Description |
Pretty easy to reproduce: Example: mongod process crashes leaving this log: Mon Oct 24 20:11:16 [conn1] ERROR: Uncaught std::exception: The problem comes from an old legacy limitation of Windows, there are The list can be found here : (quote What happens is mongo is trying to create an Aux.ns file, the API used I don't know what would be the best fix. Escaping the problematic |
| Comments |
| Comment by auto [ 07/May/12 ] | ||||||||||||||
|
Author: {u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: If the user tries to create a database on the Windows version | ||||||||||||||
| Comment by Tad Marshall [ 06/May/12 ] | ||||||||||||||
| ||||||||||||||
| Comment by Tad Marshall [ 06/May/12 ] | ||||||||||||||
|
No crash or server shutdown in 2.1.2-pre-, just error messages returned to user and output in log.
It would be a little cleaner to reject the unusable name immediately (instead of saying "switched to db aux" and "opening db: aux") and also to make the error specify that the filename is unusable because it is a reserved filename on Windows. | ||||||||||||||
| Comment by Yann Schwartz [ 24/Oct/11 ] | ||||||||||||||
|
BTW, using the API to access a db with a reserved name also crashes mongod. It's not a shell problem. |