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

[BP 6.6.3 MB-40301] - update-eventing-function for Eventing CLI

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      In the UI, We can pause-edit-resume a function.
      On the CLI, We could pause-import-resume a function.

       

      However, "import" seems to overwrite a function and lose its place in the source bucket. This would forces to "resume-from-now" and miss some data or go back to the vert beginning.
      There doesn't seem to be an "update-eventing-function" on the cli which matches the "edit Javascript" on the UI.

      another issue we are having is not knowing then the eventing function has completed its action. Since the commands seem to be asynchronous, we cannot script the commands

       

      undeploy func1

      delete func1

      import func1

       

      The import fails, since we don't know when the function is deleted. We need something like a --wait flag, which would make the execution synchronous.

       

      Attachments

        Issue Links

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

          Activity

            Wayne Siu - Please add this for 6.6.3.

            ritam.sharma Ritam Sharma added a comment - Wayne Siu - Please add this for 6.6.3.
            wayne Wayne Siu added a comment -

            Added to 6.6.3.

            wayne Wayne Siu added a comment - Added to 6.6.3.

            Build couchbase-server-6.6.3-9737 contains eventing commit 1145162 with commit message:
            MB-45360: Add /appcode endpoint to retrieve/update function code

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.3-9737 contains eventing commit 1145162 with commit message: MB-45360 : Add /appcode endpoint to retrieve/update function code
            sujay.gad Sujay Gad added a comment -

            Verified using 6.6.3 - 9756.

            sujay.gad Sujay Gad added a comment - Verified using 6.6.3 - 9756.

            Release notes not needed as this was not documented in 7.0.0 as the release notes which only covered major features. 

            I will need to make a Eventing REST API doc update for both 7.0.0 & 6.6.0 to document this.

            jon.strabala Jon Strabala added a comment - Release notes not needed as this was not documented in 7.0.0 as the release notes which only covered major features.  I will need to make a Eventing REST API doc update for both 7.0.0 & 6.6.0 to document this.

            People

              vinayaka.kamath Vinayaka Kamath (Inactive)
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty