mongo-sync save fails intermittently when save is called multiple times for a large record set #9

Closed
sankalpsaxena81 opened this Issue Jan 15, 2013 · 3 comments

Comments

Projects
None yet
2 participants

We are calling save function for each record .This save function fails after exactly 178 save calls ,179th save call fails for the next record .

Following is the stack trace:

Error: Connection closed
at Function.sync (/Users/someuser/final-merchpay/merchpay/migrations/node_modules/mongo-sync/lib/mongo-sync.js:21:9)
at [object Object].save (/Users/someuser/final-merchpay/merchpay/migrations/node_modules/mongo-sync/lib/mongo-sync.js:160:31)
at eval at requireAFile (/Users/someuser/final-merchpay/merchpay/migrations/migrations.js:35:18)
at Array.forEach (native)
at Cursor.forEach (/Users/user/final-merchpay/merchpay/migrations/node_modules/mongo-sync/lib/mongo-sync.js:180:24)

Owner

olegp commented Jan 16, 2013

Could you provide code that would reproduce this? Ideally as short as possible.

Seems like the problem was with something else. Don't exactly know what fixed it but it was not related to mongo-sync.

Owner

olegp commented Feb 4, 2013

OK, thanks.
On 4 Feb 2013 10:10, "sankalpsaxena81" notifications@github.com wrote:

Seems like the problem was with something else. Don't exactly know what
fixed it but it was not related to mongo-sync.


Reply to this email directly or view it on GitHubhttps://github.com/olegp/mongo-sync/issues/9#issuecomment-13090354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment