Closed macobo closed 10 years ago
Yeah, I think this makes sense overall
This seems pretty sensible to me. I feel like we should probably write some automated tests for actual oplog tailing, even if we won't be able to run them on Travis because their mongo's are not configured with an oplog -- we can just skip
them, and run them locally when necessary
This commit is a companion to https://github.com/stripe/mongoriver/pull/11, which adds support for tokumx as mongodb alternative and revamps much of the tailer api.
r? @ebroder
For reference, notes on how I test this since this took a little bit of puzzling:
Create an mongodb collection, insert a sample:
conn["test"]["test_collection"].insert({title: "title", nested: {name: "name1", int: 5}})
Start mosql, see if it creates table, see if database contains the record:
Try to update and insert more to see if new ones are added:
Testing if smooth updating works:
After restarting mosql, the blog_posts table should still be empty, but the tailers table should have an extra column filled with the new info. Adding inserts should also work.