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

Eventing: No error thrown for invalid value of Eventing memory quota via REST API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • Cheshire-Cat
    • eventing
    • Untriaged
    • Centos 64-bit
    • 1
    • Unknown

    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

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

        Activity

          People

            ankit.prabhu Ankit Prabhu
            sujay.gad Sujay Gad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty