flashmouse commented on PR #13920:
URL: https://github.com/apache/kafka/pull/13920#issuecomment-1637362685

   > @flashmouse thansk for the PR - I was the one who wrote the if-else if 
-else block. I'm a bit surprised that I actually made this mistake, so I held 
it off for a few days just to make sure. As you have already provided a case 
that breaks that existing logic, could you implement this as part of the test? 
Also, could you provide a test case that fails `if (consumerPartitionCount < 
otherConsumerPartitionCount) {` but succeeds in `if (consumerPartitionCount + 1 
< otherConsumerPartitionCount) {`
   > 
   > This would help massively for the reviews and documentation.
   
   hi @philipnee  thx for reply!
   
   In 
``org.apache.kafka.clients.consumer.internals.AbstractStickyAssignorTest``,I 
add: 
   
   1. ``testAssignmentAndGroupWithNonEqualSubscriptionNotTimeout``, this test 
may run very long time without fix.
   2. ``testSubscriptionNotEqualAndAssignSamePartitionWith3Generation``, this 
test should fail without fix.
   
   and please help review #13965 if possible, it mentions another serious bugs 
in 
``org.apache.kafka.clients.consumer.internals.AbstractStickyAssignor.ConstrainedAssignmentBuilder#ConstrainedAssignmentBuilder``
 and may cause rebalance stuck forever.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to