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 2019/01/17 03:08:33 UTC

[GitHub] jiangpengcheng commented on issue #4218: [ContainerProxy] reading logs failed: spray.json.JsonParser happened occasionally

jiangpengcheng commented on issue #4218: [ContainerProxy] reading logs failed: spray.json.JsonParser happened occasionally
URL: https://github.com/apache/incubator-openwhisk/issues/4218#issuecomment-455026211
 
 
   thanks for your explanation, @rabbah @markusthoemmes 
   
   I can reproduce the error now:
   
   1. setup an all-in-one OpenWhisk environment
   
   2. create a simple action
   
   ```nodejs
   function main(){
     return {"payload": "hello world"};
   }
   ```
   
   3. invoke this action: 
   ```
   for i in `seq 1 1000`; do wsk -i action invoke hello; done
   ```
   
   4. in the mean time, tailf the invoker's log
   
   ```bash
   tailf /tmp/wsklogs/invoker0/invoker0_logs.log | grep "reading logs failed"
   ```
   
   5. the invoker's log will report several `reading log failed` error
   
   ```
   [2019-01-17T02:42:39.708Z] [WARN] [#tid_cd8a243303818eda7c6b88d63a16e885] [ContainerProxy] reading logs failed: spray.json.JsonParser$ParsingException: Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value:
   [2019-01-17T02:43:38.336Z] [WARN] [#tid_01b42ae3edd8c7c4670bd62fde8b99d5] [ContainerProxy] reading logs failed: spray.json.JsonParser$ParsingException: Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value:
   [2019-01-17T02:43:38.336Z] [WARN] [#tid_ef00878a62beb5dbc580c3de5cc1618c] [ContainerProxy] reading logs failed: spray.json.JsonParser$ParsingException: Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value:
   ```
   
   @markusthoemmes , after use `JsonFraming.objectScanner` this error doesn't appear, is there any reason that OpenWhisk didn't use this framing?

----------------------------------------------------------------
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