chia7712 commented on code in PR #23837:
URL: https://github.com/apache/kafka/pull/23837#discussion_r4516379521
##########
docker/native/native-image-configs/reflect-config.json:
##########
@@ -1130,18 +1142,38 @@
"name":"org.apache.kafka.coordinator.group.assignor.RangeAssignor",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
+{
+ "name":"org.apache.kafka.coordinator.group.assignor.SimpleAssignor",
+ "methods":[{"name":"<init>","parameterTypes":[] }]
+},
{
"name":"org.apache.kafka.coordinator.group.assignor.UniformAssignor",
Review Comment:
```
Gradle Test Run :tools:test > Gradle Test Executor 166 >
NativeImageConfigTest > testPluginImplementationsAreRegistered() FAILED
org.opentest4j.AssertionFailedError: These plugins may be instantiated
reflectively. Register their no-arg constructors in
/home/chia7712/project/kafka/tools/../docker/native/native-image-configs/reflect-config.json,
or instantiate them without reflection (see KAFKA-20825). ==> expected: <[]>
but was: <[org.apache.kafka.coordinator.group.assignor.Uniform2Assignor
(implements
org.apache.kafka.coordinator.group.api.assignor.ConsumerGroupPartitionAssignor)]>
at
app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at
app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at
app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at
app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at
app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1156)
at
app//org.apache.kafka.tools.NativeImageConfigTest.testPluginImplementationsAreRegistered(NativeImageConfigTest.java:112)
```
please fix this error
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]