facebookarchive / flashback

Capture and replay real mongodb workloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO: replay.parseMetadata should handle all special mongo types

tredman opened this issue · comments

BSON has several special types. Replay currently only converts data_date and data_oid from string format to the correct mgo.bson type. The remaining types get played back as strings, causing them to fail. We should ensure all types are handled.

This is the relevant documentation on mongodb types:
http://docs.mongodb.org/manual/reference/mongodb-extended-json/

And the mgo library equivalents:
http://godoc.org/gopkg.in/mgo.v2/bson

Done. The mongo-tools library had an especially useful function for handling this type conversion.

cd77301