Skip to content

Commit 4c17b97

Browse files
committed
refactor: Replace RuntimeException with IllegalArgumentException
1 parent 43402e1 commit 4c17b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/ClusterInstance.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ default int waitUntilLeaderIsElectedOrChangedWithAdmin(Admin admin,
448448
" ms since a leader was not elected for partition " + topicPartition);
449449
}
450450

451-
default void restartDeadBrokers() throws InterruptedException {
451+
default void restartDeadBrokers() throws ExecutionException {
452452
if (brokers().isEmpty()) {
453-
throw new IllegalArgumentException("Must supply at least one server config.");
453+
throw new RuntimeException("Must supply at least one server config.");
454454
}
455455
brokers().entrySet().forEach(entry -> {
456456
if (entry.getValue().isShutdown()) {

0 commit comments

Comments
 (0)