This is an automated email from the ASF dual-hosted git repository.
fjy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 454eed0 JettyTest.testNumConnectionsMetricHttp is rarely flaky
(#10169)
454eed0 is described below
commit 454eed06a872e369e4d2fc2e3b955457ffa081ee
Author: Maytas Monsereenusorn <[email protected]>
AuthorDate: Tue Jul 14 10:36:46 2020 -0700
JettyTest.testNumConnectionsMetricHttp is rarely flaky (#10169)
---
.../test/java/org/apache/druid/server/initialization/JettyTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java
b/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java
index 2ab9f7c..0e7459b 100644
--- a/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java
+++ b/server/src/test/java/org/apache/druid/server/initialization/JettyTest.java
@@ -511,13 +511,13 @@ public class JettyTest extends BaseJettyTest
{
// it can take a bit to close the connection, so maybe sleep for a while
and hope it closes
final int sleepTimeMills = 10;
- final int totalSleeps = 10_000 / sleepTimeMills;
+ final int totalSleeps = 15_000 / sleepTimeMills;
int count = 0;
while (jsm.getActiveConnections() > 0 && count++ < totalSleeps) {
Thread.sleep(sleepTimeMills);
}
if (jsm.getActiveConnections() > 0) {
- throw new RuntimeException("Connections greater than 0");
+ throw new RuntimeException("Connections greater than 0.
activeConnections=" + jsm.getActiveConnections() + " port=" + port);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]