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

Snappy flag not getting clear as required for GETs with xattrs

    XMLWordPrintable

Details

    Description

      Summary

      When performing a GET on a document that is both compressed and has xattrs.
      If the client supports compression, we can get into a situation where we uncompress the document but send it to the client with the compressed flag still set.

      Details

      With a get request the document is uncompressed to allow the xattrs to be stripped before the document is sent to the client. However we do not clear the snappy datatype on the document before sending the document.

      On a client that does not support compression that is OK because we set the document datatype based on the intersect of what the document datatype is and what the client supports and hence the snappy datatype is cleared. However on a client that supports compression the snappy datatype is not cleared.

      This results in the server sending a document that is marked as snappy compressed but the payload is not compressed. Therefore the SDK raises an error when it attempts to decompress the payload.

      Attachments

        Issue Links

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

          Activity

            People

              owend Daniel Owen
              owend Daniel Owen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty