Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
Cheshire-Cat
-
Untriaged
-
1
-
Unknown
Description
7.0.0-4432
Steps:
1. Install 7.0.0-4432 in a single node - allocate 256MB for kv and 256MB for index during cluster init
2. Create a bucket default and allocate 100MB to it
3. Try to install travel-sample bucket using REST API now - throws the following error:
[root@node1-mad-hatter-testing-centos7 ~]# curl -X POST -u Administrator:password http://10.112.194.101:8091/sampleBuckets/install -d '["travel-sample"]'
|
["Not enough Quota, you need to allocate 200MB to install sample buckets"][root@node1-mad-hatter-testing-centos7 ~]#
|
4. Try the same with cbdocloader and it goes through:
[root@node1-mad-hatter-testing-centos7 ~]# /opt/couchbase/bin/cbdocloader -u Administrator -p password -c 10.112.194.101:8091 -b travel-sample -m 100 -d /opt/couchbase/samples/travel-sample.zip
|
WARNING: cbdocloader is deprecated
|
2021-02-11T12:50:42.184-08:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/pools/default/buckets/travel-sample' failed with status code 404 -- rest.(*Request).Execute() at request.go:142
|
2021-02-11T12:50:42.186-08:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/pools/default/buckets/travel-sample' failed with status code 404 -- rest.(*Request).Execute() at request.go:142
|
JSON `file:///opt/couchbase/samples/travel-sample.zip` imported to `http://10.112.194.101:8091` successfully
|
Documents imported: 63182 Documents failed: 0
|
[root@node1-mad-hatter-testing-centos7 ~]#
|
We can also see hard OOM error thrown in the UI logs - attaching screenshot
cbdocloader should also be restricted to not install travel-sample when enough ram quota is not available