abc icon indicating copy to clipboard operation
abc copied to clipboard

Feature request: Resuming tail after abc is restarted

Open masumsoft opened this issue 6 years ago • 8 comments

Question: Does this resume from where it left off if abc is stopped and started later on?

masumsoft avatar Jun 15 '18 04:06 masumsoft

@masumsoft Currently, no - but we will look into adding support for it.

I am changing this issue to a feature request.

  • [ ] We will add resume operations support for all DBs including ones that support tailing.
  • [ ] Add documentation for the same.
  • [ ] Write an example post showing how resuming works.

siddharthlatest avatar Jun 17 '18 19:06 siddharthlatest

The support for this has been added in 0.6.2 release.

siddharthlatest avatar Aug 28 '18 22:08 siddharthlatest

Are there any examples on how the resume should work? Adding --tail or --tail=true to my abc command to import mongo does tail but on each restart it imports the entire collection again. Is this expected behaviour?

hobbesuk avatar Dec 07 '18 11:12 hobbesuk

The support for this has been added in 0.6.2 release.

@siddharthlatest Is there any additional params needed for the resume functionality to work? Also I failed to find any changes relevant to the resume functionality in 0.6.2.

masumsoft avatar Feb 20 '19 09:02 masumsoft

@hobbesuk, your user will need to have oplog access. Check out the notes section in the mongodb docs.

jeet-parekh avatar Apr 15 '19 16:04 jeet-parekh

@masumsoft, postgres and mongo have tailing support. Check out the postgres and mongodb docs.

jeet-parekh avatar Apr 15 '19 16:04 jeet-parekh

@jeet-parekh the issue is not about tailing support, we already use that for mongodb, it's about resuming the tailing from where it left off if abc is restarted. For large databases, it takes a long time to reindex the whole db again with elastic search which is a waste of time and makes abc useless if the server needs to restart for some reason.

masumsoft avatar Apr 15 '19 18:04 masumsoft

Update: Resume tailing works with MongoDB, but doesn't work with Postgres.

siddharthlatest avatar Jul 01 '19 17:07 siddharthlatest