You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2019/05/11 06:41:00 UTC

[jira] [Resolved] (KAFKA-8332) Regression in handling of JoinGroupRequest disallows deterministic protocol selection based on order of preference

     [ https://issues.apache.org/jira/browse/KAFKA-8332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Gustafson resolved KAFKA-8332.
------------------------------------
    Resolution: Fixed
      Assignee: Bob Barrett  (was: Konstantine Karantasis)

> Regression in handling of JoinGroupRequest disallows deterministic protocol selection based on order of preference
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-8332
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8332
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>            Reporter: Konstantine Karantasis
>            Assignee: Bob Barrett
>            Priority: Blocker
>             Fix For: 2.3.0
>
>
> When a group of Kafka clients includes more than one embedded protocol in its {{JoinGroupRequest}} along with its metadata, the group membership protocol defines that the protocol which is supported by all the members of a group is selected, and if more than one protocols are supported by all the members the protocol is selected based on the order of preference as defined in the {{JoinGroupRequest}}. 
> A recent change from type {{List}} to type {{Set}} for storing the set of supported embedded protocols in the {{JoinGroupRequest}} combined with the old type of handling with implicit types in the scala code, has introduced non-determinism in the selection of the embedded protocol by the {{GroupCoordinator}}, even though the underlying type of the Set in use is a variant of LinkedHashSet (it respects order). 
> The relevant code is: 
> {code:java}
> // KafkaApis.scala
> val protocols = joinGroupRequest.data().protocols().asScala.map(protocol =>
> 	(protocol.name, protocol.metadata)).toList
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)