You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/04/18 05:09:52 UTC

[GitHub] [openwhisk-wskdebug] alexkli opened a new issue #55: store backup of action as local file instead

alexkli opened a new issue #55: store backup of action as local file instead
URL: https://github.com/apache/openwhisk-wskdebug/issues/55
 
 
   Storing it as another action `<action>_wskdebug_original` has problems:
   - takes time to create (albeit it's done async now)
   - must be removed at the end (currently not done by default to make shutdown faster, but now it's left behind if the user does not care)
   - security issue: if it's a web action the duplicate might open up an unexpected HTTP end point
   
   Storing it in a local file (e.g. `.wskdebug-<action>.code`) could be a much faster and lenient solution. In case it has to be restored, the next run can fix it. If restore after shutdown was successful, the local file can be removed.
   
   Challenges:
   - if `wskdebug` re-run (after failure) happens in a different folder, it can't be found
   - some agents call the original copy in some cases
   - what if it cannot write to the current folder or if there is a conflict

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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