-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
C Drivers
-
Not Needed
-
Updating to C driver from 1.25.0 to 1.28.0 (as part of CXX-2828) appears to have resulted in a test failure with the legacy transactions test on sharded cluster tasks on 4.2.
Example task failure:
/data/mci/cbb755e914c53d0b7523ef24f60ff28c/mongo-cxx-driver/src/mongocxx/test/spec/util.cpp:832: failed: explicitly with 6 messages: 'checking for path from environment variable: TRANSACTIONS_LEGACY_TESTS_PATH' and 'test path is: /data/mci/cbb755e914c53d0b7523ef24f60ff28c/mongo-cxx-driver/data/transactions/legacy' and 'Test path: /data/mci/cbb755e914c53d0b7523ef24f60ff28c/mongo-cxx-driver/data/transactions/legacy/error-labels.json' and 'Operation: { "name" : "commitTransaction", "object" : "session0", "result" : { "errorLabelsContain" : [ "RetryableWriteError", "UnknownTransactionCommitResult" ], "errorLabelsOmit" : [ "TransientTransactionError" ] } }' and 'apm_checker.print_all() := " APM Checker contents: APM event: { "command_started_event" : { "command" : { "insert" : "test", "ordered" : true, "$db" : "transaction-tests", "lsid" : { "id" : { "$binary" : "wxOGZK4HSkyDvHtv7CyRGQ==", "$type" : "04" } }, "$clusterTime" : { "clusterTime" : { "$timestamp" : { "t" : 1727774851, "i" : 11 } }, "signature" : { "hash" : { "$binary" : "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "$type" : "00" }, "keyId" : 0 } }, "startTransaction" : true, "txnNumber" : 1, "autocommit" : false, "documents" : [ { "_id" : 1 } ] }, "command_name" : "insert", "operation_id" : 195740085, "database_name" : "transaction-tests" } } APM event: { "command_started_event" : { "command" : { "commitTransaction" : 1, "$db" : "admin", "lsid" : { "id" : { "$binary" : "wxOGZK4HSkyDvHtv7CyRGQ==", "$type" : "04" } }, "$clusterTime" : { "clusterTime" : { "$timestamp" : { "t" : 1727774851, "i" : 11 } }, "signature" : { "hash" : { "$binary" : "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "$type" : "00" }, "keyId" : 0 } }, "writeConcern" : { "w" : "majority" }, "txnNumber" : 1, "autocommit" : false }, "command_name" : "commitTransaction", "operation_id" : 195740086, "database_name" : "admin" } } "' and 'Expected exception to contain the label 'RetryableWriteError' but it did not.
Possibly related: error-labels.json was ported to the unified format (DRIVERS-1709). Consider checking if there were test updates that may address this error.