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

kv_engine accepts doc bigger than 20mb when compressed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.5.0
    • 5.5.0
    • couchbase-bucket
    • None
    • 5.5.0-2471
    • Triaged
    • No

    Description

      Hi,

      when working on compression with the java SDK i found that kv_engine seems to accept docs larger than 20mb but rejects it properly without compression.

      I could reproduce it with lcb/cbc too so its easy to repro.

      1) I have a file called OUT which is exactly 21k bytes long containing only the char lowercase L

      $ wc -c < OUT
       21000000
      

      When storing it via cbc without compression (2.8.5) it gets rejected:

      $ cbc create -u Administrator -P password mydoc < OUT
      mydoc                The object requested is too big to store in the server (0x4)
      

      Doing the same thing with compression enabled (-y -y) accepts the doc:

      $ cbc create -u Administrator -P password mydoc -y -y < OUT
      mydoc               Stored. CAS=0x1524f8b9c12b0000
      

      You can see it now int he UI as "binary doc" and its longer than allowed.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-29258
          # Subject Branch Project Status CR V

          Activity

            People

              akshata.trivedi Akshata Trivedi [X] (Inactive)
              daschl Michael Nitschinger
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty