Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

mongodb bulk calls flush concurrently #269

Closed
jipperinbham opened this issue Feb 15, 2017 · 0 comments · Fixed by #271
Closed

mongodb bulk calls flush concurrently #269

jipperinbham opened this issue Feb 15, 2017 · 0 comments · Fixed by #271
Assignees
Labels
Milestone

Comments

@jipperinbham
Copy link
Contributor

jipperinbham commented Feb 15, 2017

while doing some integration testing, it was seen that the bulk process was logging a lot of the following:

ERRO[0906] flush error, E11000 duplicate key error index: enron.enron.$_id_ dup key: { : ObjectId('5658643c414f0983b634e231') }
  collection=enron

After taking a look at what could have caused this, it appears as though the 2 second timer can call flushAll at the same time that the manual flush is called here.

@jipperinbham jipperinbham added this to the v0.2.0 milestone Feb 15, 2017
@jipperinbham jipperinbham modified the milestones: v0.1.4, v0.2.0 Feb 15, 2017
jipperinbham added a commit that referenced this issue Feb 15, 2017
more fined grained locking is likely possible but this guarantees flush is not called for the same collection

fixes #269
@ghost ghost assigned jipperinbham Feb 15, 2017
@ghost ghost added in progress and removed next labels Feb 15, 2017
@ghost ghost added review and removed in progress labels Feb 15, 2017
@jipperinbham jipperinbham modified the milestones: v0.2.0, v0.1.4 Feb 15, 2017
@ghost ghost removed the review label Feb 21, 2017
jipperinbham added a commit that referenced this issue Feb 21, 2017
more fined grained locking is likely possible but this guarantees flush is not called for the same collection

fixes #269
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant