Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-3112

Fix failing error-labels transaction test on 4.2 sharded

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • C Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: