[CSHARP-3169] Research the reason why sometimes the initial heatbeat can take more than 5 seconds Created: 23/Jul/20  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Dmitry Lukyanov (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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


Generated at Wed Feb 07 21:44:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.