As I have explored, journal files created by Mongodb is compressed using snappy compression algorithm. but I am not able to decompress this compressed journal file. It gives an error on trying to decompress
Error stream missing snappy identifier
the python code I have used to decompress is as follows:
import collections
import bson
from bson.codec_options import CodecOptions
import snappy
from cStringIO import StringIO
try:
with open('journal/WiredTigerLog.0000000011') as f:
content = f.readlines()
fh = StringIO()
snappy.stream_decompress(StringIO("".join(content)),fh)
print fh
except Exception,e:
print str(e)
pass
please help i can't make my way after this
\377\006\0\0sNaPpY
as from *nix magic file orff06 0000 734e 6150 7059
in hex. Perhaps the WiredTiger Storage Engine is writing using a different compression option? – Abhenry