Skip to content

RUBY-3379 CSOT for bulk writes #2871

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

Merged
merged 8 commits into from
May 16, 2024

Conversation

comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review May 14, 2024 07:30
@comandeo-mongo comandeo-mongo requested a review from jamis May 14, 2024 07:30
Copy link
Contributor

@jamis jamis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this refactoring -- splitting the timeout logic to a superclass is a great idea. 🎉

# frozen_string_literal: true

module Unified
module AmbiguousOperations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Elegant solution to an inelegant problem. 👍

@@ -413,6 +415,7 @@ def execute_operation(op)
rescue Mongo::Error, bson_error, Mongo::Auth::Unauthorized, ArgumentError => e
if expected_error.use('isTimeoutError')
unless Mongo::Error::TimeoutError === e
raise e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this might be a debugging artifact? 👀

@comandeo-mongo comandeo-mongo merged commit aceef6e into mongodb:csot May 16, 2024
@comandeo-mongo comandeo-mongo deleted the 3379-csot-bulk-writes branch May 16, 2024 10:47
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

Successfully merging this pull request may close these issues.

2 participants