Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5535

InternalStreamConnectionSpecification test taking 3 minutes to complete

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: Test Improvement
    • None
    • Java 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?

      The test should notify all asynchronous writers of an exception in InternalStreamConnectionSpecification is taking 3 minutes to complete. Running git bisect identified this commit as the culprit:

      commit d6e3799a00af45310e0250d2c1f5e7429f9ce544
      Author: Maxim Katcharov <maxim.katcharov@mongodb.com>
      Date:   Wed May 29 11:38:23 2024 -0600
      
          Add throwTranslatedWriteException, refactoring, async helper (#1379)
      
          JAVA-5379
      

      Prior to this commit, the test completes in about 125 ms.

      I'm initially suspecting that the test, which uses mocks, needs to be changed, but it could also be a regression.

            Assignee:
            slav.babanin@mongodb.com Slav Babanin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: