This is an automated email from the ASF dual-hosted git repository.

style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d0c8a7  Fix heisenbug (#5027)
2d0c8a7 is described below

commit 2d0c8a72711cf20da4aedb8ada68d62774c0eca9
Author: Dominic Kim <[email protected]>
AuthorDate: Mon Jan 18 10:22:02 2021 +0900

    Fix heisenbug (#5027)
    
    * Fix heisenbug
    
    * [Temp] Add sleep between tests to analyze the issue.
    
    * Change to use blocking calls
    
    * Apply ScalaFmt
    
    * Revert "Apply ScalaFmt"
    
    This reverts commit 660b4637
    
    * Remove unnecessary import
    
    * Increase the buffer size.
---
 ansible/roles/nginx/templates/nginx.conf.j2                             | 1 +
 .../test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala | 2 +-
 tests/src/test/scala/services/HeadersTests.scala                        | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ansible/roles/nginx/templates/nginx.conf.j2 
b/ansible/roles/nginx/templates/nginx.conf.j2
index d13ee34..290739c 100644
--- a/ansible/roles/nginx/templates/nginx.conf.j2
+++ b/ansible/roles/nginx/templates/nginx.conf.j2
@@ -22,6 +22,7 @@ http {
 {# needed to enable keepalive to upstream controllers #}
     proxy_http_version 1.1;
     proxy_set_header Connection "";
+    proxy_buffers 16 4k;
 
 {% if controller.protocol == 'https' %}
     proxy_ssl_session_reuse on;
diff --git 
a/tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala 
b/tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala
index c8255e1..3617d0c 100644
--- 
a/tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala
+++ 
b/tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala
@@ -435,7 +435,7 @@ class ActionLimitsTests extends TestHelpers with 
WskTestHelpers with WskActorSys
     }
 
     for (a <- 1 to 10) {
-      val run = wsk.action.invoke(name, Map("payload" -> "128".toJson))
+      val run = wsk.action.invoke(name, Map("payload" -> "128".toJson), 
blocking = true)
       withActivation(wsk.activation, run) { response =>
         response.response.status shouldBe "success"
         response.response.result shouldBe Some(JsObject("msg" -> "OK, buffer 
of size 128 MB has been filled.".toJson))
diff --git a/tests/src/test/scala/services/HeadersTests.scala 
b/tests/src/test/scala/services/HeadersTests.scala
index ff7894d..b45bbaa 100644
--- a/tests/src/test/scala/services/HeadersTests.scala
+++ b/tests/src/test/scala/services/HeadersTests.scala
@@ -83,7 +83,7 @@ class HeadersTests extends FlatSpec with Matchers with 
ScalaFutures with WskActo
     Http().singleRequest(httpRequest, connectionContext = connectionContext)
   }
 
-  implicit val config = PatienceConfig(10 seconds, 0 milliseconds)
+  implicit val config = PatienceConfig(10 seconds, 100 milliseconds)
 
   val basePath = Path("/api/v1")
   implicit val wskprops = WskProps()

Reply via email to