Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -254,7 +254,7 @@ public void produce(String topic, Integer partition, String key, String value) {
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);
Comment thread
rhauch marked this conversation as resolved.
}
}

Expand Down