Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1461

Do not log failed N1QL prepare queries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.5.1
    • None
    • library

    Description

      When monitoring production environments, logging about specific N1QL queries that are failing would be very helpful.  Queries might be problematic due to bad statement syntax, targeting the wrong/missing bucket, missing index, inefficient index causing a timeout, etc.

      This log would only apply If the failure is related to the query itself (i.e. not just an HTTP communication error).  Logging the actual query text that failed would help with identifying bad query and locating it in code.

      The Warn log level is probably the most appropriate for this log.

       

      NOTE: I renamed the ticket from
      Log failed N1QL queries to assist with production monitoring
      to
      Do not log failed N1QL prepare queries

      Attachments

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

        Activity

          People

            mike.goldsmith Michael Goldsmith
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty