Problem:
Its possible for the Shell to create an invalid date, persist it and then cause other drivers to fail, python example
File "/usr/lib/python2.6/site-packages/pymongo-2.7.1-py2.6-linux-x86_64.egg/bson/__init__.py", line 234, in _get_date dt = EPOCH_NAIVE + datetime.timedelta(seconds=seconds) InvalidBSON: normalized days too large to fit in a C int
An octal dump of the .bson file from mongodump reveals
od -xa dump/test/boo.bson 0000000 0026 0000 5f07 6469 5300 edeb 12d6 bc16 & nul nul nul bel _ i d nul S k m V dc2 syn < 0000020 a63b f008 097e 796d 6164 6574 0000 0000 ; & bs p ~ ht m y d a t e nul nul nul nul 0000040 0000 0000 0080 nul nul nul nul nul nul
- is related to
-
SERVER-960 Dates before epoch not retrieved correctly
- Closed