starpit edited a comment on issue #4516: Openwhisk in a standalone runnable jar
URL: 
https://github.com/apache/incubator-openwhisk/pull/4516#issuecomment-504605775
 
 
   after wasting a fair amount of time on this... this seems a bit buggy to me, 
still. e.g. if i deploy a Composer composition, invoke it; then delete the 
action and re-create it with a different compostion... subsequent GETs on the 
composer action give the expected update, but INVOKEs stick with the old verson 
-- until i restart the openwhisk java process.
   
   here is what i see from the INVOKE (after an delete and create! so there 
should be a cache miss here in the container pool, right?), which seems to 
indicate that the cached container has not been invalidated:
   ```
   [WhiskAction] [GET] serving from cache: CacheKey(guest/hhh) 
[marker:database_cacheHit_counter:10]
   [ContainerPool] containerStart containerState: warmed container: 
Some(ContainerId(45ce6c4b5a90bffb69a164ca32358fb5f8372e98a7c8a0c75238a3bbc43c2200))
 activations: 1 of max 1 action: hhh namespace: guest activationId: 
729a96fe2a2140109a96fe2a21401078 
[marker:invoker_containerStart.warmed_counter:10]
   ```
   
   here is the detail of the DELETE:
   ```
   DELETE /api/v1/namespaces/_/actions/hhh 
   [GET] serving from cache: CacheKey(23bc46b1-71f6-4ed5-8c54-816aa4f8c502) 
[marker:database_cacheHit_counter:1]
   [WhiskAction] [GET] serving from cache: CacheKey(guest/hhh) 
[marker:database_cacheHit_counter:2]
   [WhiskAction] invalidating CacheKey(guest/hhh) on delete
   [MemoryArtifactStore] [DEL] 'whisks' deleting document: 'id: guest/hhh, rev: 
1' [marker:database_deleteDocument_start:2]
   [MemoryArtifactStore]  [marker:database_deleteDocument_finish:2:0]
   [WhiskAction] invalidating CacheKey(guest/hhh)
   [MemoryAttachmentStore] [ATTS_DELETE] uploading attachment of document 
'guest/hhh' [marker:database_deleteDocumentAttachments_start:6]
   [MemoryAttachmentStore]  
[marker:database_deleteDocumentAttachments_finish:6:0]
   [BasicHttpService] [marker:http_delete.200_counter:7:7]
   ```
   
   and the CREATE:
   ```
   PUT /api/v1/namespaces/_/actions/hhh 
   [WhiskAction] [GET] serving from datastore: CacheKey(guest/hhh) 
[marker:database_cacheMiss_counter:5]
   [MemoryArtifactStore] [GET] 'whisks' finding document: 'id: guest/hhh' 
[marker:database_getDocument_start:5]
   [MemoryArtifactStore]  [marker:database_getDocument_finish:5:0]
   [WhiskAction] invalidating CacheKey(guest/hhh)
   [WhiskAction] write initiated on new cache entry
   [MemoryArtifactStore] [PUT] 'whisks' saving document: 'id: guest/hhh, rev: 
0' [marker:database_saveDocument_start:7]
   [MemoryArtifactStore]  [marker:database_saveDocument_finish:7:0]
   [WhiskAction] write all done, caching CacheKey(guest/hhh) Cached
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to