jaraco / jaraco.mongodb

MongoDB Utilities including an oplog replay tool
MIT License
5 stars 2 forks source link

MongoDB 3.6 changes to oplog break tests #13

Closed jaraco closed 6 years ago

jaraco commented 6 years ago

After introducing MongoDB 3.6 to the tests, the tests are failing.

The most basic failure is in the .js test suite, where the UUID loaded from the database doesn't apply.

jaraco commented 6 years ago

I figured out that the UUIDs are in fact loading as proper UUIDs when queried, but it's PyMongo that's converting them to {'$uuid': <hex digits>}.

jaraco commented 6 years ago

Turns out that the issue was on the outgoing encoding and by providing the appropriate CodecOptions on the destination database object, the tests now pass.