Ziyun Fu created KAFKA-21672:
--------------------------------

             Summary:  Allow customized streams group assignors to override 
built-in assignor names
                 Key: KAFKA-21672
                 URL: https://issues.apache.org/jira/browse/KAFKA-21672
             Project: Kafka
          Issue Type: Improvement
            Reporter: Ziyun Fu


 \{{group.streams.assignors}} rejects a custom \{{TaskAssignor}} whose 
\{{name()}} is the name of a built-in assignor (e.g.  \{{sticky}}). The broker 
fails to start with "Assignor name 'sticky' is reserved by a built-in 
assignor".                          
                                                                                
                                                    
 KAFKA-20843 removed the same check for \{{group.consumer.assignors}}, so that 
an operator can replace a built-in assignor with their own implementation under 
the same name, without any change on the group side. The streams check was kept 
at that time only  
 because \{{group.streams.assignors}} was new in 4.4. The two configs should 
behave the same way.                                   
                                                                                
                                                    
The check also makes every new built-in assignor a breaking change: a broker 
that runs a custom assignor under a name that a later release uses for a 
built-in (for example \{{spread}} in KAFKA-21194) fails to start after the 
upgrade.                             
                                                                                
                                                    
  Proposed change in \{{GroupCoordinatorConfig#streamsGroupAssignors}}:         
                                                     
  * Remove the reserved-name check. A custom assignor that is configured by its 
class name may use the name of a built-in assignor, and it is then the assignor 
used for that name.                                                             
                      
  * Keep the duplicate-name check. Two configured assignors that resolve to the 
same name (e.g. \{{sticky,com.example.MySticky}} where \{{MySticky}} is named 
\{{sticky}}) still fail at startup.       



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

Reply via email to