Skip to content

Commit

Permalink
KAFKA-14938: Fixing flaky test org.apache.kafka.connect.integration.E…
Browse files Browse the repository at this point in the history
…xactlyOnceSourceIntegrationTest#testConnectorBoundary
  • Loading branch information
Sambhav Jain committed Apr 27, 2023
1 parent 007c0d3 commit 512fd6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ public void testConnectorBoundary() throws Exception {
Map<String, Object> consumerProps = new HashMap<>();
consumerProps.put(ConsumerConfig.ISOLATION_LEVEL_CONFIG, "read_committed");
// consume all records from the source topic or fail, to ensure that they were correctly produced
ConsumerRecords<byte[], byte[]> sourceRecords = connect.kafka().consumeAll(
ConsumerRecords<byte[], byte[]> sourceRecords = connect.kafka().consume(
MINIMUM_MESSAGES,
CONSUME_RECORDS_TIMEOUT_MS,
Collections.singletonMap(ConsumerConfig.ISOLATION_LEVEL_CONFIG, "read_committed"),
null,
topic
);
assertTrue("Not enough records produced by source connector. Expected at least: " + MINIMUM_MESSAGES + " + but got " + sourceRecords.count(),
Expand Down

0 comments on commit 512fd6e

Please sign in to comment.