Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3169

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dmitry.lukyanov Dmitry Lukyanov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: