AndrewJSchofield commented on code in PR #23106:
URL: https://github.com/apache/kafka/pull/23106#discussion_r4192598918
##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java:
##########
@@ -366,15 +366,15 @@ public void shouldChangeStateInRebalanceListener(final
boolean processingThreads
thread.setStateListener(stateListener);
assertEquals(StreamThread.State.CREATED, thread.state());
- final ConsumerRebalanceListener rebalanceListener =
thread.rebalanceListener();
+ final RebalanceListener rebalanceListener = thread.rebalanceListener();
final List<TopicPartition> revokedPartitions;
final List<TopicPartition> assignedPartitions;
// revoke nothing
thread.setState(StreamThread.State.STARTING);
revokedPartitions = Collections.emptyList();
- rebalanceListener.onPartitionsRevoked(revokedPartitions);
+ rebalanceListener.onPartitionsRevoked(revokedPartitions, null);
Review Comment:
Looking at how Kafka Streams plumbs in the rebalance listener, it seems to
me that the supplied RebalanceConsumer is not actually used by the TaskManager.
I wonder if actually the test should mock a RebalanceConsumer and assert that
its methods are never called, rather than providing a null as the
RebalanceListener to the callbacks.
--
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]