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

[BP-48147] [Eventing][UI]: Able to modify to timer context size when function is deployed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.2
    • 7.0.2, 7.1.0
    • eventing
    • None
    • Untriaged
    • Centos 64-bit
    • 1
    • Yes

    Description

      Build - 7.0.2 - 6578

      STEPS TO REPRODUCE
      Create and deploy eventing handler.

      UI

      • Modify timer context size via UI and click on save. No error thrown.
      • Try to pause the handler, following error is thrown.

        pause failed: {"code":38,"info":"Function: test setting: timer_context_size can only be altered when the function is paused or undeployed."}
        

      REST API

      • Try to modify timer context size when handler is deployed.

        curl -XPOST http://Administrator:password@10.112.190.102:8096/api/v1/functions/test/settings -d '{"timer_context_size": 200,"deployment_status":true,"processing_status":true}' 
        {
         "name": "ERR_INVALID_CONFIG",
         "code": 38,
         "description": "Invalid configuration",
         "attributes": null,
         "runtime_info": {
          "code": 38,
          "info": "Function: test setting: timer_context_size can only be altered when the function is paused or undeployed."
         }
        }
        

        Appropriate error thrown.

      Attachments

        Issue Links

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

          Activity

            People

              ankit.prabhu Ankit Prabhu
              ankit.prabhu Ankit Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty