You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by rh...@apache.org on 2019/02/26 05:39:48 UTC
[kafka] branch 2.0 updated: MINOR: Increase produce timeout to 120
seconds (#6326)
This is an automated email from the ASF dual-hosted git repository.
rhauch pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.0 by this push:
new d573585 MINOR: Increase produce timeout to 120 seconds (#6326)
d573585 is described below
commit d573585795afe223ffe96419a85968b9969b82e4
Author: Arjun Satish <wi...@users.noreply.github.com>
AuthorDate: Mon Feb 25 21:26:59 2019 -0800
MINOR: Increase produce timeout to 120 seconds (#6326)
MINOR: Increase produce timeout for EmbeddedKafkaCluster to 120 seconds
Previous value was 500ms. This change gives more room to pass tests on systems with low resources running many parallel tests.
Reviewers: Randall Hauch <ra...@confluent.io>
---
.../org/apache/kafka/connect/util/clusters/EmbeddedKafkaCluster.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedKafkaCluster.java b/connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedKafkaCluster.java
index 109ba14..4464395 100644
--- a/connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedKafkaCluster.java
+++ b/connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedKafkaCluster.java
@@ -75,7 +75,7 @@ public class EmbeddedKafkaCluster extends ExternalResource {
private static final Logger log = LoggerFactory.getLogger(EmbeddedKafkaCluster.class);
- private static final long DEFAULT_PRODUCE_SEND_DURATION_MS = 500;
+ private static final long DEFAULT_PRODUCE_SEND_DURATION_MS = TimeUnit.SECONDS.toMillis(120);
// Kafka Config
private final KafkaServer[] brokers;
@@ -254,7 +254,7 @@ public class EmbeddedKafkaCluster extends ExternalResource {
try {
producer.send(msg).get(DEFAULT_PRODUCE_SEND_DURATION_MS, TimeUnit.MILLISECONDS);
} catch (Exception e) {
- throw new KafkaException("Could not produce message to topic=" + topic, e);
+ throw new KafkaException("Could not produce message: " + msg, e);
}
}