Browse Source

MINOR: Bump timeout for sending records (#5843)

Reviewers: John Roesler <john@confluent.io>, Matthias J. Sax <matthias@confluent.io>
pull/10160/head
Bill Bejeck 6 years ago committed by Matthias J. Sax
parent
commit
63715efa02
  1. 2
      streams/src/test/java/org/apache/kafka/streams/integration/GlobalThreadShutDownOrderTest.java
  2. 4
      streams/src/test/java/org/apache/kafka/streams/integration/InternalTopicIntegrationTest.java

2
streams/src/test/java/org/apache/kafka/streams/integration/GlobalThreadShutDownOrderTest.java

@ -146,7 +146,7 @@ public class GlobalThreadShutDownOrderTest {
public boolean conditionMet() { public boolean conditionMet() {
return firstRecordProcessed; return firstRecordProcessed;
} }
}, 10000L, "Has not processed record within 10 seconds"); }, 30000, "Has not processed record within 30 seconds");
kafkaStreams.close(Duration.ofSeconds(30)); kafkaStreams.close(Duration.ofSeconds(30));

4
streams/src/test/java/org/apache/kafka/streams/integration/InternalTopicIntegrationTest.java

@ -163,7 +163,7 @@ public class InternalTopicIntegrationTest {
// //
// Step 3: Verify the state changelog topics are compact // Step 3: Verify the state changelog topics are compact
// //
waitForCompletion(streams, 2, 10000); waitForCompletion(streams, 2, 30000);
streams.close(); streams.close();
final Properties changelogProps = getTopicProperties(ProcessorStateManager.storeChangelogTopic(appID, "Counts")); final Properties changelogProps = getTopicProperties(ProcessorStateManager.storeChangelogTopic(appID, "Counts"));
@ -203,7 +203,7 @@ public class InternalTopicIntegrationTest {
// //
// Step 3: Verify the state changelog topics are compact // Step 3: Verify the state changelog topics are compact
// //
waitForCompletion(streams, 2, 5000); waitForCompletion(streams, 2, 30000);
streams.close(); streams.close();
final Properties properties = getTopicProperties(ProcessorStateManager.storeChangelogTopic(appID, "CountWindows")); final Properties properties = getTopicProperties(ProcessorStateManager.storeChangelogTopic(appID, "CountWindows"));
final List<String> policies = Arrays.asList(properties.getProperty(LogConfig.CleanupPolicyProp()).split(",")); final List<String> policies = Arrays.asList(properties.getProperty(LogConfig.CleanupPolicyProp()).split(","));

Loading…
Cancel
Save