Fix flaky RetryableReadsProseTests.PoolClearedError_read_retryablity_test

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 3.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      RetryableReadsProseTests.PoolClearedError_read_retryablity_test are flaky, it sporadically returns the following error:

      [2026/02/09 14:07:00.418] FAILURE: Expected value to be 1, but found 0. (failure) [2026/02/09 14:07:00.418] Expected value to be 1, but found 0. [2026/02/09 14:07:00.418] Stack Trace: [2026/02/09 14:07:00.418] at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message) [2026/02/09 14:07:00.418] at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message) [2026/02/09 14:07:00.418] at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) [2026/02/09 14:07:00.418] at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args) [2026/02/09 14:07:00.418] at FluentAssertions.Numeric.NumericAssertions`1.Be(T expected, String because, Object[] becauseArgs) [2026/02/09 14:07:00.418] at MongoDB.Driver.Tests.Specifications.retryable_reads.RetryableReadsProseTests.PoolClearedError_read_retryablity_test(Boolean async) in /data/mci/58f000278a6ad228644438ae53fe3d4a/mongo-csharp-driver/tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsProseTests.cs:line 117 [2026/02/09 14:07:00.418] --- End of stack trace from previous location ---

            Assignee:
            Oleksandr Poliakov
            Reporter:
            Oleksandr Poliakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: