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

Fixing KeyError when bulk operation is interrupted (for example by failover) #231

Merged

Conversation

IlyaSkriblovsky
Copy link
Contributor

If Bulk operation is interrupted (by failover, by network failure, ...) current version of txmongo with combination of PyMongo 3.6.0 raises KeyError from coll.bulk_write. This is because we are calling pymongo.bulk._merge_command without checking it for being proper bulk response.

@coveralls
Copy link

coveralls commented May 7, 2018

Coverage Status

Coverage increased (+0.005%) to 95.2% when pulling 4991447 on IlyaSkriblovsky:pymongo3.6-bulk-operationfailure into 3bdd644 on twisted:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 95.2% when pulling 773b963 on IlyaSkriblovsky:pymongo3.6-bulk-operationfailure into 3bdd644 on twisted:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 95.2% when pulling 773b963 on IlyaSkriblovsky:pymongo3.6-bulk-operationfailure into 3bdd644 on twisted:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 95.2% when pulling 773b963 on IlyaSkriblovsky:pymongo3.6-bulk-operationfailure into 3bdd644 on twisted:master.

@psi29a
Copy link
Contributor

psi29a commented May 7, 2018

We'll eventually have to implement sessions. :/

@IlyaSkriblovsky
Copy link
Contributor Author

Yep, it would be cool

@psi29a
Copy link
Contributor

psi29a commented May 8, 2018

Great, just an update in the change log and we're good to go.

@psi29a psi29a merged commit 2074262 into twisted:master May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants