kevin-wu24 opened a new pull request, #18126:
URL: https://github.com/apache/kafka/pull/18126

   Currently, test will fail on `setUp` with the following error:
   ```
   ERROR [KafkaApi-1] Unexpected error handling request 
RequestHeader(apiKey=CREATE_TOPICS, apiVersion=7, clientId=adminclient-1, 
correlationId=3, headerVersion=2) 
       -- 
CreateTopicsRequestData(topics=[CreatableTopic(name='__consumer_offsets', 
numPartitions=5, replicationFactor=1, assignments=[], 
configs=[CreatableTopicConfig(name='compression.type', value='producer'), 
CreatableTopicConfig(name='cleanup.policy', value='compact'), 
CreatableTopicConfig(name='segment.bytes', value='104857600')])], 
timeoutMs=29982, validateOnly=false) 
       with context RequestContext(header=RequestHeader(apiKey=CREATE_TOPICS, 
apiVersion=7, clientId=adminclient-1, correlationId=3, headerVersion=2), 
connectionId='127.0.0.1:54995-127.0.0.1:55000-1-0', clientAddress=/127.0.0.1, 
principal=User:scram-admin, listenerName=ListenerName(CLIENT), 
securityProtocol=SASL_SSL, 
clientInformation=ClientInformation(softwareName=apache-kafka-java, 
softwareVersion=4.0.0-SNAPSHOT), fromPrivilegedListener=false, 
principalSerde=Optional.empty) (kafka.server.KafkaApis:76)
   java.lang.IllegalArgumentException: Cannot deserialize principal from 
request context RequestContext(header=RequestHeader(apiKey=CREATE_TOPICS, 
apiVersion=7, clientId=adminclient-1, correlationId=3, headerVersion=2), 
connectionId='127.0.0.1:54995-127.0.0.1:55000-1-0', clientAddress=/127.0.0.1, 
principal=User:scram-admin, listenerName=ListenerName(CLIENT), 
securityProtocol=SASL_SSL, 
clientInformation=ClientInformation(softwareName=apache-kafka-java, 
softwareVersion=4.0.0-SNAPSHOT), fromPrivilegedListener=false, 
principalSerde=Optional.empty) since there is no serde defined
   ```
   Removing the following config allows the actual test to start running:  
   ```
   
this.serverConfig.setProperty(s"${listenerName.configPrefix}${BrokerSecurityConfigs.PRINCIPAL_BUILDER_CLASS_CONFIG}",
 classOf[GroupedUserPrincipalBuilder].getName)
   ```
   but then the `throttle-time` metrics used to validate the test aren't 
properly appearing on the broker.
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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]

Reply via email to