sjhajharia commented on code in PR #20156:
URL: https://github.com/apache/kafka/pull/20156#discussion_r2275311819
##########
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/distributed/DistributedHerderTest.java:
##########
@@ -4188,12 +4186,12 @@ private void expectRebalance(final Collection<String>
revokedConnectors,
if (connectProtocolVersion == CONNECT_PROTOCOL_V0) {
assignment = new ExtendedAssignment(
connectProtocolVersion, error, leader, leaderUrl,
offset,
- assignedConnectors, assignedTasks,
- Collections.emptyList(), Collections.emptyList(), 0);
+ new ArrayList<>(assignedConnectors), new
ArrayList<>(assignedTasks),
+ List.of(), List.of(), 0);
} else {
assignment = new ExtendedAssignment(
connectProtocolVersion, error, leader, leaderUrl,
offset,
- assignedConnectors, assignedTasks,
+ new ArrayList<>(assignedConnectors), new
ArrayList<>(assignedTasks),
Review Comment:
Done. Thanks!
--
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]