[CDRIVER-4353] /server_discovery_and_monitoring/monitoring/heartbeat/pooled/dns Created: 11/Apr/22  Updated: 28/Oct/23  Resolved: 12/Oct/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.25.0

Type: Task Priority: Major - P3
Reporter: Roberto Sanchez Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: failing-on-waterfall, flaky-tests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Stabilize Evergreen

 Description   

The /server_discovery_and_monitoring/monitoring/heartbeat/pooled/dns test currently fails and/or is flaky. This test was initially observed as problematic when transitioning from RHEL7 to RHEL8 for s390x zSeries builds (CDRIVER-3923). At that time, the failure was isolated to the call to getaddrinfo () blocking for 5 seconds on RHEL8. The test was later observed to fail in a similar way on another build variant (arm64 w/ Ubuntu 18.04).

The test is currently being skipped, so to work on it, it will first be necessary to remove it from .evergreen/skip-tests.txt and run a patch build to determine the current failure mode(s).

It will also be worth considering removing the implementation of test_framework_skip_if_rhel8_zseries () in src/libmongoc/tests/test-libmongoc.c.



 Comments   
Comment by Githook User [ 12/Oct/23 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-4353 unskip `/server_discovery_and_monitoring/monitoring/heartbeat/pooled/dns` (#1440)

  • unskip `/server_discovery_and_monitoring/monitoring/heartbeat/pooled/dns`
  • use `.invalid` TLD in test

To reliably return DNS error

  • remove unnecessary test skips

Test expects to fail DNS lookup. Does not require internet.

  • remove unused `test_framework_skip_if_rhel8_zseries`
  • reduce serverSelectionTimeoutMS to speed up test
  • update comment and expected error
  • measure duration after destroy client or pool

Destroying the client or pool results in sending `endSessions`. This may result in another heartbeat attempt.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/960760fcc19f48328c2cef1e9cf9cad3698e068d

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