Skip to content

Conversation

sanych-sun
Copy link
Member

No description provided.

@sanych-sun sanych-sun requested a review from a team as a code owner August 21, 2025 22:14
@sanych-sun sanych-sun requested review from papafe and removed request for a team August 21, 2025 22:14
@sanych-sun sanych-sun added the bug label Aug 21, 2025
@sanych-sun sanych-sun requested review from BorisDog and adelinowona and removed request for papafe August 21, 2025 22:14

if (operationContext.IsRootContextTimeoutConfigured())
{
writeConcern = writeConcern.With(wTimeout: null);
Copy link
Member Author

Choose a reason for hiding this comment

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

We should not use wTimeout if CSOT timeout is configured.

Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

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

minor comments

@@ -99,6 +111,12 @@ public void Dispose()
_combinedCancellationTokenSource?.Dispose();
}

public OperationContext Fork()
Copy link
Contributor

Choose a reason for hiding this comment

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

minor:

public OperationContext Fork() =>
    new(...) { RootContext... }

[InlineData(100, 0)]
[InlineData(100, 100)]
[InlineData(100, 1000)]
public void Elapsed_should_calculate(int timeoutMs, int elapsedMs)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: calculate what (also in other methods)?

@sanych-sun sanych-sun requested a review from BorisDog August 22, 2025 16:29
BorisDog
BorisDog previously approved these changes Aug 22, 2025
Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

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

LGTM + minor comment in slack

Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

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

LGTM

@sanych-sun sanych-sun merged commit 4027d48 into mongodb:main Aug 25, 2025
32 of 34 checks passed
@sanych-sun sanych-sun deleted the csharp5708 branch August 25, 2025 20:45
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.

2 participants