Details
Description
On Windows, a failure on any call to MapViewOfFile() or MapViewOfFileEx() will result in a Fatal Assertion and server shutdown.
On Linux, a failure on a call to mmap() from remapPrivateView() will result in an abort(), but a failure in map(), createReadOnlyMap() or createPrivateMap() is just logged, and the server does not shut down.
We should probably follow the same rules on these two platforms.
This test reported this issue 7114 times before the test finally failed:
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.814 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.815 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.815 [conn7] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.815 [conn7] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.816 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.816 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|
m30001| Sat Nov 24 02:11:49.816 [conn3] mmap() failed for /data/db/mrShardedOutput1/test.5 len:536608768 errno:12 Cannot allocate memory
|
m30001| Sat Nov 24 02:11:49.816 [conn3] mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64
|