Chia-Ping Tsai created KAFKA-21409:
--------------------------------------

             Summary: Switching to a subscription regex that matches no topic 
doesn't trigger rebalance
                 Key: KAFKA-21409
                 URL: https://issues.apache.org/jira/browse/KAFKA-21409
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


 
{code:java}
ResolvedRegularExpression newResolvedRegularExpression = entry.getValue();
ResolvedRegularExpression oldResolvedRegularExpression = group
  .resolvedRegularExpression(regex)
  .orElse(ResolvedRegularExpression.EMPTY);                

if 
(!oldResolvedRegularExpression.topics().equals(newResolvedRegularExpression.topics()))
 {
{code}
Since ResolvedRegularExpression.EMPTY has no topics which is equal to 
"match-to-nothing", the condition won't get passed. The side effect is that the 
partitions won't be reassigned to other consumers.

 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to