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

[BP MB-32437] - With 30 buckets, error while deploying second function

    XMLWordPrintable

    Details

    • Triage:
      Untriaged
    • Flagged:
      Release Note
    • Is this a Regression?:
      No
    • Release Notes:

      Attachments

        Issue Links

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

          Activity

          Hide
          jyotsna.nayak Jyotsna Nayak added a comment - - edited

          Reopening this issue.

          The following was observed: 

          end-point used: http://172.23.97.177:8096/api/v1/functions/bucket-30-test1

          30 functions have been deployed . On the 30th function , it is failing with the following message:
          [WARNING] Retrying
          [http://172.23.97.177:8096/api/v1/functions/bucket-30-test1
          ]
          [WARNING] {
          "name": "ERR_APP_ALREADY_DEPLOYED",
          "code": 20,
          "description": "Function already deployed",
          "attributes": null,
          "runtime_info": {
          "code": 20,
          "info": "Function: bucket-30-test1 another function with same name is already deployed, skipping save request"
           
          link to the job: http://perf.jenkins.couchbase.com/view/Eventing/job/themis_multibucket/24/

          Logs: 
          https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-themis_multibucket-24/172.23.97.177.zip

          Show
          jyotsna.nayak Jyotsna Nayak added a comment - - edited Reopening this issue. The following was observed:  end-point used: http://172.23.97.177:8096/api/v1/functions/bucket-30-test1 30 functions have been deployed . On the 30th function , it is failing with the following message: [WARNING] Retrying [http://172.23.97.177:8096/api/v1/functions/bucket-30-test1 ] [WARNING] { "name": "ERR_APP_ALREADY_DEPLOYED", "code": 20, "description": "Function already deployed", "attributes": null, "runtime_info": { "code": 20, "info": "Function: bucket-30-test1 another function with same name is already deployed, skipping save request"   link to the job: http://perf.jenkins.couchbase.com/view/Eventing/job/themis_multibucket/24/ Logs:  https://s3-us-west-2.amazonaws.com/perf-artifacts/jenkins-themis_multibucket-24/172.23.97.177.zip
          Hide
          suraj.naik Suraj Naik (Inactive) added a comment -

          From eventing logs, I see that the deployment started at 2020-03-12T08:36:28.057 and completed at 2020-03-12T08:36:54.037

          2020-03-12T08:36:28.057-07:00 [Info] SuperSupervisor::SettingsChangeCallback [29] Function: bucket-30-test1 begin deployment process
          ...
          ...
          2020-03-12T08:36:54.037-07:00 [Info] SuperSupervisor::SettingsChangeCallback [30] Function: bucket-30-test1 deployment done
          

          From your test logs, I see that the first call to deploy this functions was done at 2020-03-12T08:36:25 and the subsequent retry call to deploy the function was done at 2020-03-12T08:36:55

          21:06:25 *2020-03-12T08:36:25* [INFO] Deploying function on node 172.23.97.177: {
          21:06:25     "actionsVisible": true,
          21:06:25     "appcode": "function OnUpdate(doc, meta) {\n    bucket1[meta.id]=doc[\"alt_email\"];\n}\n\nfunction OnDelete(doc) {\n}\n",
          21:06:25     "appname": "bucket-30-test1",
           
          ...
          ...
          21:06:55 *2020-03-12T08:36:55* [INFO] Deploying function on node 172.23.97.177: {
          21:06:55     "actionsVisible": true,
          21:06:55     "appcode": "function OnUpdate(doc, meta) {\n    bucket1[meta.id]=doc[\"alt_email\"];\n}\n\nfunction OnDelete(doc) {\n}\n",
          21:06:55     "appname": "bucket-30-test1",
          

          The second call to deploy was done after the function finished deploying at 2020-03-12T08:36:54.037, so it is giving an error saying function already deployed. If a function is already deployed, then we reject any subsequent call to deploy the same function.

          Can you tell me why the test is retrying to deploy an already deployed function. We reject any subsequent deploy operation to a function which is already in the deployed state.

          Show
          suraj.naik Suraj Naik (Inactive) added a comment - From eventing logs, I see that the deployment started at 2020-03-12T08:36:28.057 and completed at 2020-03-12T08:36:54.037 2020-03-12T08:36:28.057-07:00 [Info] SuperSupervisor::SettingsChangeCallback [29] Function: bucket-30-test1 begin deployment process ... ... 2020-03-12T08:36:54.037-07:00 [Info] SuperSupervisor::SettingsChangeCallback [30] Function: bucket-30-test1 deployment done From your test logs, I see that the first call to deploy this functions was done at 2020-03-12T08:36:25 and the subsequent retry call to deploy the function was done at 2020-03-12T08:36:55 21:06:25 *2020-03-12T08:36:25* [INFO] Deploying function on node 172.23.97.177: { 21:06:25 "actionsVisible": true, 21:06:25 "appcode": "function OnUpdate(doc, meta) {\n bucket1[meta.id]=doc[\"alt_email\"];\n}\n\nfunction OnDelete(doc) {\n}\n", 21:06:25 "appname": "bucket-30-test1",   ... ... 21:06:55 *2020-03-12T08:36:55* [INFO] Deploying function on node 172.23.97.177: { 21:06:55 "actionsVisible": true, 21:06:55 "appcode": "function OnUpdate(doc, meta) {\n bucket1[meta.id]=doc[\"alt_email\"];\n}\n\nfunction OnDelete(doc) {\n}\n", 21:06:55 "appname": "bucket-30-test1", The second call to deploy was done after the function finished deploying at 2020-03-12T08:36:54.037 , so it is giving an error saying function already deployed. If a function is already deployed, then we reject any subsequent call to deploy the same function. Can you tell me why the test is retrying to deploy an already deployed function. We reject any subsequent deploy operation to a function which is already in the deployed state.
          Hide
          jyotsna.nayak Jyotsna Nayak added a comment -

          Closing this issue as 30 functions were successfully deployed on build 6.5.1-6260
          Link to job: http://perf.jenkins.couchbase.com/view/Eventing/job/themis_multibucket/32/

          Show
          jyotsna.nayak Jyotsna Nayak added a comment - Closing this issue as 30 functions were successfully deployed on build 6.5.1-6260 Link to job: http://perf.jenkins.couchbase.com/view/Eventing/job/themis_multibucket/32/
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-1006.5.1-1125 contains eventing commit 42818a3 with commit message:
          MB-38033: CI/Test Fix TestUndeployDuringBootstrap

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-1006.5.1-1125 contains eventing commit 42818a3 with commit message: MB-38033 : CI/Test Fix TestUndeployDuringBootstrap
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-1006.5.1-1125 contains eventing commit 371dc2d with commit message:
          MB-38033:Add ServiceChangeNotifier to cache Cluster Info

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-1006.5.1-1125 contains eventing commit 371dc2d with commit message: MB-38033 :Add ServiceChangeNotifier to cache Cluster Info

            People

            Assignee:
            jyotsna.nayak Jyotsna Nayak
            Reporter:
            jeelan.poola Jeelan Poola
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty