showuon commented on code in PR #12349:
URL: https://github.com/apache/kafka/pull/12349#discussion_r913507405
##########
core/src/test/scala/integration/kafka/api/PlaintextConsumerTest.scala:
##########
@@ -969,6 +970,71 @@ class PlaintextConsumerTest extends BaseConsumerTest {
}
}
+ @Test
+ def testCoopearativeAssigorAndRejoin(): Unit = {
+ // 2 consumer using cooperative-sticky assignment
+ this.consumerConfig.setProperty(ConsumerConfig.GROUP_ID_CONFIG,
"cooperative-sticky-group")
+
this.consumerConfig.setProperty(ConsumerConfig.PARTITION_ASSIGNMENT_STRATEGY_CONFIG,
classOf[CooperativeStickyAssignor].getName)
Review Comment:
I just tested the test without your change, and it passed. Then, I found in
the test, we default `ENABLE_AUTO_COMMIT_CONFIG` to false. So, please enable it
explicitly. 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]