Skip to content

Commit 2d0c8a7

Browse files
authored
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 660b463 * Remove unnecessary import * Increase the buffer size.
1 parent a202538 commit 2d0c8a7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ansible/roles/nginx/templates/nginx.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ http {
2222
{# needed to enable keepalive to upstream controllers #}
2323
proxy_http_version 1.1;
2424
proxy_set_header Connection "";
25+
proxy_buffers 16 4k;
2526

2627
{% if controller.protocol == 'https' %}
2728
proxy_ssl_session_reuse on;

tests/src/test/scala/org/apache/openwhisk/core/limits/ActionLimitsTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class ActionLimitsTests extends TestHelpers with WskTestHelpers with WskActorSys
435435
}
436436

437437
for (a <- 1 to 10) {
438-
val run = wsk.action.invoke(name, Map("payload" -> "128".toJson))
438+
val run = wsk.action.invoke(name, Map("payload" -> "128".toJson), blocking = true)
439439
withActivation(wsk.activation, run) { response =>
440440
response.response.status shouldBe "success"
441441
response.response.result shouldBe Some(JsObject("msg" -> "OK, buffer of size 128 MB has been filled.".toJson))

tests/src/test/scala/services/HeadersTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class HeadersTests extends FlatSpec with Matchers with ScalaFutures with WskActo
8383
Http().singleRequest(httpRequest, connectionContext = connectionContext)
8484
}
8585

86-
implicit val config = PatienceConfig(10 seconds, 0 milliseconds)
86+
implicit val config = PatienceConfig(10 seconds, 100 milliseconds)
8787

8888
val basePath = Path("/api/v1")
8989
implicit val wskprops = WskProps()

0 commit comments

Comments
 (0)