showuon commented on code in PR #15837:
URL: https://github.com/apache/kafka/pull/15837#discussion_r1591749069
##########
core/src/test/scala/unit/kafka/server/KafkaApisTest.scala:
##########
@@ -2822,6 +2822,31 @@ class KafkaApisTest extends Logging {
() => kafkaApis.handleWriteTxnMarkersRequest(null,
RequestLocal.withThreadConfinedCaching))
}
+ @Test
+ def requiredAclsNotPresentWriteTxnMarkersThrowsAuthorizationException():
Unit = {
Review Comment:
For this test, it can pass without this change. Maybe we need a test to
verify it won't throw exception when alter cluster is allowed, and
clusterAction is denied, it won't throw exception. WDYT?
--
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]