Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1347

Logging can trigger a panic in TransactionATRLocation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • core-10.2.0, 2.6.0
    • None
    • None
    • None
    • 1

    Description

      When we dump the TransactionsConfig to the log we attempt to log the custom ATR location. If there is no custom ATR location then the call .Agent() leads to a panic which leads to logs like

      Initializing transactions: CustomATRLocation:%!s(PANIC=String method: runtime error: invalid memory address or nil pointer dereference) ExpirationTime:0s 

      I'm not entirely sure why this doesn't crash the entire SDK.

      Attachments

        Issue Links

          Activity

            People

              charles.dixon Charles Dixon
              charles.dixon Charles Dixon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty