Gary Russell created KAFKA-15092:
------------------------------------
Summary: KafkaClusterTestKit in test jar depends on
MockFaultHandler
Key: KAFKA-15092
URL: https://issues.apache.org/jira/browse/KAFKA-15092
Project: Kafka
Issue Type: Bug
Affects Versions: 3.5.0
Reporter: Gary Russell
{noformat}
java.lang.NoClassDefFoundError: org/apache/kafka/server/fault/MockFaultHandler
at
kafka.testkit.KafkaClusterTestKit$SimpleFaultHandlerFactory.<init>(KafkaClusterTestKit.java:119)
at
kafka.testkit.KafkaClusterTestKit$Builder.<init>(KafkaClusterTestKit.java:143)
{noformat}
MockFaultHandler is missing from the test jar.
This PR https://github.com/apache/kafka/pull/13375/files seems to work around
it by adding the {code}server-common sourcesets.test.output{code} to the class
path.
The class needs to be available for third parties to create an embedded KRaft
broker.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)