Skip to content

Commit

Permalink
MINOR: improve flaky Streams system test
Browse files Browse the repository at this point in the history
Handle TimeoutException in Producer callback and retry sending input data

Author: Matthias J. Sax <[email protected]>

Reviewers: Damian Guy <[email protected]>

Closes apache#4244 from mjsax/improve-flaky-system-test
  • Loading branch information
mjsax authored and dguy committed Nov 22, 2017
1 parent 225b0b9 commit 80038e6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public static Map<String, Set<Integer>> generate(String kafka, final int numKeys
// no duplicates
producerProps.put(ProducerConfig.RETRIES_CONFIG, Integer.MAX_VALUE);
producerProps.put(ProducerConfig.ACKS_CONFIG, "all");
producerProps.put(ProducerConfig.REQUEST_TIMEOUT_MS_CONFIG, 45000);

KafkaProducer<byte[], byte[]> producer = new KafkaProducer<>(producerProps);

Expand Down

0 comments on commit 80038e6

Please sign in to comment.