Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-420

Exception Propogation tests are failing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.0.0
    • None
    • fit

    Description

      We are seeing all the tests fail in the file: 
      AppDoesNotPropagateExceptionsTest
       
      They fail on multiple server versions because FIT is expecting the exception cause to be ExternalException.NotSet in the gRPC, but the performer is returning ExternalException.Unknown.
       
      Logs from performer here:

      [2024-01-03 13:12:31.392][11]========== public void com.couchbase.transactions.AppDoesNotPropagateExceptionsTest.removeWillNotProceedAfterCaughtOperation():removeWillNotProceedAfterCaughtOperation() : ========== testStart
      [2024-01-03 13:12:31.552][10]transactionCreate called with attempts {
        commands {
          replace {
            doc_id {
              bucket_name: "default"
              scope_name: "_default"
              collection_name: "_default"
              doc_id: "4e8fa146-30dd-4dba-94b1-ba8dced4cf17"
            }
            content_json: "{\"content\":\"updated\"}"
            expected_result {
              error {
                error_class: EC_FAIL_OTHER
                auto_rollback_attempt: true
                to_raise: EXCEPTION_FAILED
                cause {
                  do_not_check: true
                }
              }
            }
          }
          do_not_propagate_error: true
        }
        commands {
          remove {
            doc_id {
              bucket_name: "default"
              scope_name: "_default"
              collection_name: "_default"
              doc_id: "4e8fa146-30dd-4dba-94b1-ba8dced4cf17"
            }
            expected_result {
              error {
                error_class: EC_FAIL_OTHER
                auto_rollback_attempt: true
                to_raise: EXCEPTION_FAILED
                cause {
                  exception: PreviousOperationFailed
                }
              }
            }
            expected_result {
              error {
      [2024-01-03 13:12:31.877][49]Firing hook action FAIL_OTHER
      [2024-01-03 13:12:31.877][10] not propagating unknown error (1300)
      [2024-01-03 13:12:32.558][11]========== public void com.couchbase.transactions.AppDoesNotPropagateExceptionsTest.removeWillNotProceedAfterCaughtOperation():removeWillNotProceedAfterCaughtOperation() : ========== testEnd 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            matt.wozakowski Matt Wozakowski
            matthew.bray Matthew Bray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes