Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52810

Include human-readable message in DCP rollback responses

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 7.1.0
    • DCP
    • 1

    Description

      When the server responds to a DCP stream request (opcode 0x53) with a rollback error (PROTOCOL_BINARY_RESPONSE_ROLLBACK (0x23)), it would be nice if the response included a brief human-readable message in addition to the rollback seqno.

      Motivation: This will aid in diagnosing issues related to rollbacks in the connectors. The connectors will be able to log the rollback cause, so users won't have to struggle with capturing and digging through the corresponding memcached logs.

      The body of a rollback response currently consists of the 8 byte sequence number to roll back to. One way to implement the improvement would be to follow the sequence number with the message as a string. Perhaps the message should be prefixed by an unsigned LEB128 integer specifying the length of the message, so additional "fields" could be tacked onto the response in the future.

      It's unknown whether this would break existing DCP clients. It might be good to add a new DCP control that enables including the message in the response.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty