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/23 05:45:56 UTC

[GitHub] jiangpengcheng opened a new issue #4231: if controller_activation_pollingFromDb is false, and invoker send a Left(activationId) to Kafka, the blocking invocation will wait until timeout

jiangpengcheng opened a new issue #4231: if controller_activation_pollingFromDb is false, and invoker send a Left(activationId) to Kafka, the blocking invocation will wait until timeout
URL: https://github.com/apache/incubator-openwhisk/issues/4231
 
 
   ## Environment details:
   
   * local deployment
   * git head 2312b7d6b913fc30bcd56643285fa29aaa18815c
   
   ## Steps to reproduce the issue:
   
   1.  first we need to change `InvokerReactive` to make sure it will always send `Left(activationId)` to Kafka(actually, invoker send Left(activationId) to Kafka only when the activation record is too large , I just simulate the error here)
   
   ```
       send(Left(activationResult.activationId), recovery = false)
   
       /*    send(Right(if (blockingInvoke) activationResult else activationResult.withoutLogsOrResult)).recoverWith {
         case t if t.getCause.isInstanceOf[RecordTooLargeException] =>
           send(Left(activationResult.activationId), recovery = true)
       }*/
   ```
   
   2.   build and deploy an all-in-one OpenWhisk with `-e controller_activation_pollingFromDb=false`
   3.   invoke an blocking activation
   
   ## Provide the expected results and outputs:
   
   ```
   # time wsk -i action invoke hello -r
   ok: invoked /whisk.system/hello, but the request has not yet finished, with id ab7a0b68f050426bba0b68f050a26b2f
   
   real    0m0.605s
   user    0m0.029s
   sys     0m0.029s
   ```
   
   
   ## Provide the actual results and outputs:
   
   ```
   # time wsk -i action invoke hello -r
   ok: invoked /whisk.system/hello, but the request has not yet finished, with id 6a1916b5bad94d379916b5bad9bd376f
   
   real    1m0.160s
   user    0m0.031s
   sys     0m0.027s
   ```
   
   the request need to wait 1 minute to finish
   
   ## Additional information you deem important:
   
   

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