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

Unify timeout checks in exception handling methods. #1449

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin requested a review from rozza July 16, 2024 03:31
vbabanin added 2 commits July 15, 2024 20:42
JAVA-5526
JAVA-5526
@vbabanin vbabanin mentioned this pull request Jul 16, 2024
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.

LGTM - had one optional comment / observation.

assertNotNull(timeout);
timeout = startTimeout(timeoutSettings.getTimeoutMS());
public void resetTimeoutIfPresent() {
if (hasTimeoutMS()) {
Copy link
Member

Choose a reason for hiding this comment

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

Comment: The method naming makes the assertNotNull seem restrictive. Should it be part of the if statement?

I guess its a bug if this is called if there isnt a timeout set - its just slightly unclear thats the case.

@vbabanin vbabanin self-assigned this Jul 17, 2024
@vbabanin vbabanin merged commit 27d9dee into mongodb:CSOT Jul 17, 2024
26 of 28 checks passed
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