|
kill -9 can cause data corruption, and the repl tests are not immune. We could do an fsync before the kill, but that might partially defeat the purpose of a hard kill.
<http://buildbot.mongodb.org/builders/OS%20X%2010.5%2064-bit/builds/252/steps/test_2/logs/stdio>
m31001| Tue Feb 16 15:01:05 allocating new datafile /data/db/repl7tests-slave/aaaa.ns, filling with zeroes...
m31000| Tue Feb 16 15:01:05 end connection 127.0.0.1:62058
m31000| Tue Feb 16 15:01:05 end connection 127.0.0.1:62054
shell: stopped mongo program on port 31001
shell: started mongo program /Users/erh/work/buildbot/OS_X_105_64bit/mongo/mongod --nohttpinterface --noprealloc --bind_ip 127.0.0.1 --smallfiles --port 31001 --dbpath /data/db/repl7tests-slave --slave --source 127.0.0.1:31000 --oplogSize 1
m31001| Tue Feb 16 15:01:10 Mongo DB : starting : pid = 19858 port = 31001 dbpath = /data/db/repl7tests-slave master = 0 slave = 1 64-bit
m31001| Tue Feb 16 15:01:10 Assertion: 10446:mmap() can't map area of size 0 [/data/db/repl7tests-slave/aaaa.ns]
m31001| 0x10005bde7 0x100094e08 0x10004fc6c 0x10011081a 0x10016573a 0x100165dc0 0x100162a4b 0x1001d9243 0x1001da46b 0x1001da90d 0x1001dcdf7 0x1000010e4 0xf
m31001| 0 mongod 0x000000000005bde7 _ZN5mongo11msgassertedEiPKc + 455
m31001| 1 mongod 0x0000000000094e08 _ZN5mongo16MemoryMappedFile3mapEPKcRli + 1976
m31001| 2 mongod 0x000000000004fc6c _ZN5mongo16MemoryMappedFile3mapEPKc + 140
m31001| 3 mongod 0x000000000011081a _ZN5mongo14NamespaceIndex4initEv + 794
m31001| 4 mongod 0x000000000016573a _ZN5mongo8DatabaseC2EPKcRbRKSs + 394
m31001| 5 mongod 0x0000000000165dc0 _ZN5mongo14DatabaseHolder11getOrCreateERKSsS2_Rb + 720
m31001| 6 mongod 0x0000000000162a4b _ZN5mongo6Client7Context11_finishInitEb + 747
m31001| 7 mongod 0x00000000001d9243 _ZN5mongo15repairDatabasesEv + 595
m31001| 8 mongod 0x00000000001da46b _ZN5mongo14_initAndListenEiPKc + 1355
m31001| 9 mongod 0x00000000001da90d _ZN5mongo13initAndListenEiPKc + 29
m31001| 10 mongod 0x00000000001dcdf7 main + 8679
m31001| 11 mongod 0x00000000000010e4 start + 52
m31001| 12 ??? 0x000000000000000f 0x0 + 15
|