Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For some reason the Migration is called twice! #19

Open
efstathios-chatzikyriakidis opened this issue Mar 24, 2016 · 1 comment
Open

Comments

@efstathios-chatzikyriakidis

I am facing the following problem: The migration is called twice!

Here is my code: http://pastebin.com/wAPHrW8j

Please help.

@g0t4
Copy link
Collaborator

g0t4 commented Mar 24, 2016

If a doc is changed drastically, it can move around on disk and then be
returned by a cursor a second time.

You can either write an idempotent migration or open your own cursor and
use snapshotting:
https://docs.mongodb.org/manual/core/read-isolation-consistency-recency/
(pay heed to the warnings listed)

On Thu, Mar 24, 2016 at 8:09 AM, EfstathiosChatzikyriakidis <
[email protected]> wrote:

I am facing the following problem: The migration is called twice!

Here is my code: http://pastebin.com/wAPHrW8j

Please help.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants