Details
-
Bug
-
Resolution: Fixed
-
Critical
-
5.5.0
-
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
- relates to
-
MB-27961 Possible unexpected behavior on size limit on compressed vs uncompressed
- Closed
For Gerrit Dashboard: MB-29258 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
92803,1 | MB-29258: uncompressed length of data should not exceed max item size | master | kv_engine | Status: ABANDONED | 0 | -1 |
92855,2 | MB-29258: add an engine API to get maximum item size | vulcan | kv_engine | Status: ABANDONED | 0 | 0 |
92856,4 | MB-29258: Add an engine API to get maximum item size | master | kv_engine | Status: ABANDONED | 0 | +1 |
92941,13 | MB-29258: Add an engine API to get maximum item size | vulcan | kv_engine | Status: MERGED | +2 | +1 |
93266,1 | Merge remote-tracking branch 'couchbase/vulcan' | master | kv_engine | Status: MERGED | +2 | +1 |
99300,2 | MB:29258 Test doc bigger than 20mb when compressed | master | testrunner | Status: MERGED | +2 | +1 |
99776,4 | MB-29258: add expect error code | master | testrunner | Status: MERGED | +2 | +1 |