[CDRIVER-4517] Improve test coverage for retryable handshake errors Created: 01/Nov/22  Updated: 28/Oct/23  Resolved: 11/Nov/22

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

Type: Improvement Priority: Unknown
Reporter: PM Bot Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2489 Improve test coverage for retryable h... Implementing
Related
is related to CDRIVER-4192 Drivers should retry operations if co... Closed
is related to PHPLIB-1033 Improve test coverage for retryable h... Blocked
Upstream Changes Summary:

DRIVERS-2489:

  • Sync unified spec test files for Retryable Reads and Retryable Writes with 35b17b70 (formerly b9cdbbbe; bugfix applied to skip operations not supported on serverless).

 Description   

This ticket was split from DRIVERS-2489, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 16/Nov/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4517 Sync unified retryable read and write test files with 35b17b70 (#1150)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/b464a5fd7d6c52b7b0183fb13138c155b6307367

Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4192 Support retryable handshake network errors (#1141)

  • Move legacy retryable reads test files into legacy subdirectory
  • Move legacy retryable writes test files into legacy subdirectory
  • Sync unified retryable reads test files with 08230607
  • Sync unified retryable writes test files with 08230607
  • Sync unified transactions test files with 08230607
  • Bump default task timeout from 40 minutes to to 1 hour
  • Address TSAN warnings in test_add_and_scan_failure
  • Address -Wunused-const-variable for gHexCharPairs
  • Improve error message when expected OP_MSG request is not received
  • Improve assertion message for monotonic clock time comparison
  • Address null pointer warnings by scan-build
  • CDRIVER-4517 Sync unified retryable writes tests files with b9cdbbbe
  • CDRIVER-4517 Sync unified retryable reads tests files with b9cdbbbe
  • Declare _mongoc_cluster_stream_for_server as static
  • Refactor _mongoc_bson_init_with_transient_txn_error -> _mongoc_add_transient_txn_error
  • Separate aggregates with writes from mongoc_cluster_stream_for_reads
  • Add _mongoc_error_is_auth
  • Declare _mongoc_write_error_append_retryable_label in mongoc-error-private.h
  • Remove always-true handshake_complete parameter from _handle_network_error
  • Assert preconditions for mongoc_cluster_stream_for_server
  • Permit empty arguments field for operation_list_collections
  • Retry when encountering a network error establishing an initial connection to a server
  • Update tests to account for retryable handshake network failures
  • Add unified test runner support for listDatabaseNames
Generated at Wed Feb 07 21:21:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.