Browse Source

HOTFIX: fix checkstyle in Streams system test (#7494)

Reviewers: Guozhang Wang <wangguoz@gmail.com>
pull/7497/head
A. Sophie Blee-Goldman 5 years ago committed by Guozhang Wang
parent
commit
b80a572d12
  1. 12
      streams/src/test/java/org/apache/kafka/streams/tests/StreamsBrokerDownResilienceTest.java

12
streams/src/test/java/org/apache/kafka/streams/tests/StreamsBrokerDownResilienceTest.java

@ -104,7 +104,7 @@ public class StreamsBrokerDownResilienceTest { @@ -104,7 +104,7 @@ public class StreamsBrokerDownResilienceTest {
final KafkaStreams streams = new KafkaStreams(builder.build(), streamsProperties);
streams.setUncaughtExceptionHandler( (t,e) -> {
streams.setUncaughtExceptionHandler((t, e) -> {
System.err.println("FATAL: An unexpected exception " + e);
System.err.flush();
streams.close(Duration.ofSeconds(30));
@ -114,11 +114,11 @@ public class StreamsBrokerDownResilienceTest { @@ -114,11 +114,11 @@ public class StreamsBrokerDownResilienceTest {
System.out.println("Start Kafka Streams");
streams.start();
Runtime.getRuntime().addShutdownHook(new Thread( () -> {
streams.close(Duration.ofSeconds(30));
System.out.println("Complete shutdown of streams resilience test app now");
System.out.flush();
}
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
streams.close(Duration.ofSeconds(30));
System.out.println("Complete shutdown of streams resilience test app now");
System.out.flush();
}
));
}

Loading…
Cancel
Save