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

Add optional packet dumps to logs for debugging like JVM SDKs

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • backlog-3.0
    • 3.4.9
    • library
    • None
    • 2

    Description

      From talking to David Nault the Java clients get useful packet information in their logs:

      For KV, it logs a hex dump of every incoming/outgoing Couchbase packet, along with a little dissection of the header that looks like:

      ------ Field ------+ Offset +--- Value ---
      Magic              | 0      | 0x80 (REQUEST)
      Opcode             | 1      | 0x1F (HELLO)
      Key Length         | 2-3    | 0x007E (126)
      Extras Length      | 4      | 0x00 (0)
      Datatype           | 5      | 0x00 ([])
      VBucket            | 6-7    | 0x0000 (0)
      Total Body Length  | 8-11   | 0x000000A4 (164)
      Opaque             | 12-15  | 0x00000002
      CAS                | 16-23  | 0x0000000000000000
      ----- Payload -----+--------+-------------
      >> Key: {"a":"java/3.4.9-SNAPSHOT (Mac OS X 13.5 aarch64; OpenJDK 64-Bit Server VM 17.0.8+7)","i":"814E422700000001/000000008F5F7553"}
      -------------------+--------+-------------
      

      This ticket is to add the feature to .NET SDK as its useful for debugging.

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty