Details
Description
Build - 7.0.0 - 5295
Try to set Eventing memory quota less than 256 MB.
1. api/v1/config endpoint
curl -XPOST -d '{"ram_quota": 10}' http://Administrator:password@10.112.190.102:8096/api/v1/config |
{
|
"restart": false |
}
|
curl -XGET http://Administrator:password@10.112.190.102:8096/api/v1/config |
{
|
"enable_debugger": true, |
"ram_quota": 10 |
}
|
No error thrown.
2. pools/default endpoint
Downloads % curl -v -X POST -u Administrator:password \
|
http://10.112.190.101:8091/pools/default \ |
-d "eventingMemoryQuota=10" |
Note: Unnecessary use of -X or --request, POST is already inferred.
|
Trying 10.112.190.101... |
TCP_NODELAY set
|
Connected to 10.112.190.101 (10.112.190.101) port 8091 (#0) |
Server auth using Basic with user 'Administrator' |
POST /pools/default HTTP/1.1 |
Host: 10.112.190.101:8091 |
Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==
|
User-Agent: curl/7.64.1 |
Accept: */*
|
Content-Length: 22 |
Content-Type: application/x-www-form-urlencoded
|
upload completely sent off: 22 out of 22 bytes |
HTTP/1.1 400 Bad Request |
Cache-Control: no-cache,no-store,must-revalidate
|
Content-Length: 97 |
Content-Type: application/json
|
Date: Tue, 15 Jun 2021 09:08:57 GMT |
Expires: Thu, 01 Jan 1970 00:00:00 GMT |
Pragma: no-cache
|
Server: Couchbase Server
|
X-Content-Type-Options: nosniff
|
X-Frame-Options: DENY
|
X-Permitted-Cross-Domain-Policies: none
|
X-XSS-Protection: 1; mode=block |
Connection #0 to host 10.112.190.101 left intact |
{"errors":{"eventingMemoryQuota":"The eventing service quota (10MB) cannot be less than 256MB."}}* Closing connection 0 |
Appropriate error thrown.
Attachments
For Gerrit Dashboard: MB-46910 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155812,7 | MB-46910: Restrict RAM quota to 256MB or more | unstable | eventing | Status: MERGED | +2 | +1 |