Skip to content

Do various small timeout-related improvements#1908

Merged
stIncMale merged 1 commit intomongodb:mainfrom
stIncMale:miscTimeoutImprovements
Mar 16, 2026
Merged

Do various small timeout-related improvements#1908
stIncMale merged 1 commit intomongodb:mainfrom
stIncMale:miscTimeoutImprovements

Conversation

@stIncMale
Copy link
Member

No description provided.

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

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

One question about readability - but not a blocker.

LGTM

@rozza rozza removed the request for review from vbabanin March 11, 2026 11:53
Copy link
Member Author

@stIncMale stIncMale left a comment

Choose a reason for hiding this comment

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

I originally left some comments for reviewers, but forgot to submit them... Submitting them now.

import com.mongodb.lang.Nullable;

/**
* An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
Copy link
Member Author

Choose a reason for hiding this comment

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

This description became incorrect when MongoOperationTimeoutException was introduced.


/**
* Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.
* Exception indicating that the execution of the current command timed out by the server
Copy link
Member Author

Choose a reason for hiding this comment

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

Note the "operation" -> "command" change.

Copy link
Member Author

Choose a reason for hiding this comment

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

The changes in this file were caused by #1899 (comment).

@stIncMale stIncMale requested a review from rozza March 13, 2026 14:19
@rozza
Copy link
Member

rozza commented Mar 16, 2026

LGTM! - Ship it.
Also thanks for the Intellij tip :)

@stIncMale stIncMale merged commit 2b00a83 into mongodb:main Mar 16, 2026
55 checks passed
@stIncMale stIncMale deleted the miscTimeoutImprovements branch March 16, 2026 21:42
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