KAFKA-15751, KAFKA-15752: Enable KRaft for BaseAdminIntegrationTest and SaslSslAdminIntegrationTest#15175
Conversation
|
Thanks for the PR. The test failures look related as |
face684 to
cf4523d
Compare
Thanks @mimaison for raising this. I am still looking into the failing tests. |
cf4523d to
683cc62
Compare
221780a to
83b36f4
Compare
|
This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please ask a committer for review. If the PR has merge conflicts, please update it with the latest from trunk (or appropriate release branch) If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
|
Hi @CalvinConfluent, when enabling KRaft support for Admin integration tests, one of the tests failed (testAuthorizedOperations) due to how DescribeTopic API request is handled (introduced by KIP-966). The test is expecting a null |
|
Hi @tinaselenge The DescribeTopicPartitions API does not support ZK brokers[link]. The API should not be returned through ApiVersions API and UNSUPPORTED_VERSION error should be returned if a ZK broker receives DescribeTopicPartitions request. |
|
Hi @CalvinConfluent, Thanks for the clarification. The issue is that this causes a compatibility change. For example with the following code: DescribeTopicsOptions options = new DescribeTopicsOptions().includeAuthorizedOperations(false);
TopicCollection topics = TopicCollection.ofTopicNames(Collections.singletonList(topic));
DescribeTopicsResult describeTopicsResult = admin.describeTopics(topics, options);
TopicDescription topicDescription = describeTopicsResult.topicNameValues().get(topic).get();
System.out.println(topicDescription.authorizedOperations());In ZooKeeper mode, this prints In wonder if the |
|
Thanks @mimaison raising the issue.
That is the a problem for this test as we now get 2 different behaviours when describing a topic partition with includeAuthorizedOperations set to false. In zk mode via metadata request, the response contains null authorised operations, but in Kraft mode via describeTopicPartition request, the response contains the authorised operations. |
Pardon me, why the solution of #16136 is to filter authorizedOperations out on client-side, and that is ok to me. I'm just curios about the context :) |
mimaison
left a comment
There was a problem hiding this comment.
Thanks for the PR! I left a few comments.
|
The CI failed due to timeout. I kicked another build. |
|
None of the test failures are related, merging to trunk |
…nd SaslSslAdminIntegrationTest (apache#15175) Reviewers: Mickael Maison <mickael.maison@gmail.com>
…nd SaslSslAdminIntegrationTest (apache#15175) Reviewers: Mickael Maison <mickael.maison@gmail.com> (cherry picked from commit 166d9e8)
…nd SaslSslAdminIntegrationTest (apache#15175) Reviewers: Mickael Maison <mickael.maison@gmail.com> (cherry picked from commit 166d9e8)
…aft for BaseAdminIntegrationTest and SaslSslAdminIntegrationTest (#15175) (#17101) (cherry picked from commit 166d9e8) KAFKA-15751 and KAFKA-15752 enable the kraft mode in SaslSslAdminIntegrationTest, and that is useful in writing security-related IT. Without the backport, the fixes to security could be obstructed from backport due to IT (KAFKA-17315, for example). Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…aft for BaseAdminIntegrationTest and SaslSslAdminIntegrationTest (#15175) (#17102) (cherry picked from commit 166d9e8) KAFKA-15751 and KAFKA-15752 enable the kraft mode in SaslSslAdminIntegrationTest, and that is useful in writing security-related IT. Without the backport, the fixes to security could be obstructed from backport due to IT (KAFKA-17315, for example). Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Committer Checklist (excluded from commit message)