Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-416

Client throws exception "Cannot cache data larger than 20971520 bytes" when receiving uncompressed document from server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • None
    • None
    • Security Level: Public
    • None

    Description

      Steps to reproduce:
      1) generate a 30MB document. compress the document, in my case the compressed size is ~15MB.
      2) using a 3.0 client, send this compressed doc with datatype 0x02 to the server. server stores this as is.
      3) using a 2.x client, request a GET for this document. The server uncompresses the doc since the request if from 2.x client that is not flex metadata aware and sends the raw doc to client.
      4) client throws following exception and connection resets..java.lang.IllegalArgumentException: Cannot cache data larger than 20971520 bytes (you tried to cache a 31211520 byte object)
      5) we should release appropriate hot patch or workaround information on how to handle this scenario from 2.x clients.

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            venu Venu Uppalapati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty