Skip to content

Do various small timeout-related improvements - #1908

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

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

Conversation

@stIncMale

Copy link
Copy Markdown
Member

No description provided.

Comment thread driver-core/src/main/com/mongodb/internal/TimeoutContext.java

@rozza rozza left a comment

Copy link
Copy Markdown
Member

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

@stIncMale stIncMale left a comment

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

rozza commented Mar 16, 2026

Copy link
Copy Markdown
Member

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

2 participants