You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/10/13 18:46:19 UTC

[GitHub] pritidesai opened a new issue #605: How do we prevent Concurrent Access to same OpenWhisk entity?

pritidesai opened a new issue #605: How do we prevent Concurrent Access to same OpenWhisk entity?
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/605
 
 
   We have seen couple of concurrency issues with deployment/undeployment when
   
   - triggers and rules
   
   When we try to run `wskdeploy` to with these two manifest files in deployment mode, deployment fails with `Error: Error: /Users/pritidesai/Documents/goworkspace/src/github.com/apache/incubator-openwhisk-wskdeploy/deployers/servicedeployer.go [913]: OpenWhisk Client Error =====> The requested resource does not exist. (code 23582280) Error code: 148.`
   
   package1-manifest.yaml
   
   ```
   packages:
     pacakge1:
         actions:
           helloworld:
             function: actions/helloworld.js
             runtime: nodejs:6
         triggers:
           locationupdate:
         rules:
           myRule:
             trigger: locationupdate
             rule: myRule
   ``` 
   
   package2-manifest.yaml
   
   ```
   packages:
     pacakge2:
         actions:
           helloworld:
             function: actions/helloworld.js
             runtime: nodejs:6
         triggers:
           locationupdate:
         rules:
           myRule:
             trigger: locationupdate
             rule: myRule
   ``` 
   
   - dependency
   
   Its a valid use case of having dependency on same package from different manifest files but this leads to the same issue of concurrency and sometimes fails with the same error 148 and sometimes fails with `"Error: /Users/pritidesai/Documents/goworkspace/src/github.com/apache/incubator-openwhisk-wskdeploy/deployers/servicedeployer.go [666]: OpenWhisk Client Error =====> Sequence component does not exist. (code 23582010) Error code: 144.\n"})` or `Deployment of dependency myhelloworlds did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.\nError: /Users/pritidesai/Documents/goworkspace/src/github.com/apache/incubator-openwhisk-wskdeploy/deployers/servicedeployer.go [666]: OpenWhisk Client Error =====> Concurrent modification to resource detected. (code 23549814) Error code: 153.\n"})`
   
   package1-manifest.yaml
   
   ```
   packages:
     package1:
         dependencies:
             myhelloworlds:
                   location: github.com/apache/incubator-openwhisk-test/packages/helloworlds
         actions:
           hello:
             function: actions/helloworld.js
             runtime: nodejs:6
          sequences:
             helloworldnodejs-series:
                   actions: hello, myhelloworlds/hello-js
   ```
   
   package2-manifest.yaml
   
   ```
   packages:
     package2:
         dependencies:
             myhelloworlds:
                   location: github.com/apache/incubator-openwhisk-test/packages/helloworlds
         actions:
           hello:
             function: actions/helloworld.js
             runtime: nodejs:6
          sequences:
             helloworldnodejs-series:
                   actions: hello, myhelloworlds/hello-js
   ```
   
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services