Research the reason why sometimes the initial heatbeat can take more than 5 seconds

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • 🔵 Done
    • 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

      This is a follow-up ticket for CSHARP-2964.

      Calling this line may require approximately around 5 seconds: https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver.Core/Core/Connections/TcpStreamFactory.cs#L311 

      I've added a log to 310 and 315 lines:

      "await await Dns.GetHostAddressesAsync":
      { 
           "Message": "await Dns.GetHostAddressesAsync", 
           "Endpoint": "Unspecified/localhost:27017", 
           "Cancelled": "Cancelled_null", 
           "Date": "07/23/20 1:48:54_596", 
           "AppName": "TestSocketConfigurator" 
      },
      "socket_created":
      {
           "Message": "socket_creating", 
           "Endpoint": "Unspecified/localhost:27017", 
           "Cancelled": "Cancelled_null", 
           "Date": "07/23/20 1:48:59_587", 
           "AppName": "TestSocketConfigurator" 
      }
      

      Pay attention to the difference between `Date`s. We need to investigate the reasons for this behavior. The EG: https://evergreen.mongodb.com/task_log_raw/dot_net_driver_tests_snappy_compression__version~4.4_os~windows_64_topology~standalone_auth~noauth_ssl~nossl_compressor~snappy_test_netstandard15_patch_297fcd723ff32aac47b7b018c978ec4baf0773d7_5f18e7f0c9ec445ac9df0b6a_20_07_23_01_29_20/0?type=T#L2989

            Assignee:
            Boris Dogadov
            Reporter:
            Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: