Skip to content

(docs) Add JavaDocs for org.apache.kafka.common.security.oauthbearer.secured#11811

Merged
junrao merged 3 commits intoapache:trunkfrom
justinrlee:trunk
Mar 3, 2022
Merged

(docs) Add JavaDocs for org.apache.kafka.common.security.oauthbearer.secured#11811
junrao merged 3 commits intoapache:trunkfrom
justinrlee:trunk

Conversation

@justinrlee
Copy link
Copy Markdown
Contributor

Single-line change to build.gradle to render javadocs for new org.apache.kafka.common.security.oauthbearer.secured package (part of KIP-768)

cc @junrao

@justinrlee
Copy link
Copy Markdown
Contributor Author

(Also, I'm not sure if we'd want a similar PR to the 3.1 branch)

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justinrlee : Thanks for the PR. LGTM. Do you know why there are many test failures for java 17?

@justinrlee
Copy link
Copy Markdown
Contributor Author

I'm really not sure, have never done this before. When I do the build locally, I get a bunch of what look like completely test failures. I'm not sure how my PR would cause those failures but I don't know enough to troubleshoot, tbh.

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 2, 2022

retest this please

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 2, 2022

test this please

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 2, 2022

ok to test

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 2, 2022

retest this please

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 2, 2022

@justinrlee : It doesn't seem other PRs have similar problems. Could you trigger another build by adding some minor changes to the PR (e.g. white space) to see if they are transient?

@justinrlee
Copy link
Copy Markdown
Contributor Author

Just submitted two commits (add space, and then undo). Will monitor this.

@showuon
Copy link
Copy Markdown
Member

showuon commented Mar 3, 2022

The latest build results look good. The most failed tests also failed in trunk build. (ref: https://ci-builds.apache.org/job/Kafka/job/kafka/job/trunk/731/#showFailuresLink).

    Build / ARM / org.apache.kafka.streams.integration.NamedTopologyIntegrationTest.shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing
    Build / JDK 17 and Scala 2.13 / integration.kafka.server.FetchRequestBetweenDifferentIbpTest.testControllerNewIBP()
    Build / JDK 17 and Scala 2.13 / kafka.admin.LeaderElectionCommandTest.[1] Type=Raft, Name=testPreferredReplicaElection, Security=PLAINTEXT
    Build / JDK 17 and Scala 2.13 / org.apache.kafka.streams.integration.NamedTopologyIntegrationTest.shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing
    Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.integration.RebalanceSourceConnectorsIntegrationTest.testDeleteConnector
    Build / JDK 11 and Scala 2.13 / org.apache.kafka.streams.integration.NamedTopologyIntegrationTest.shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing
    Build / JDK 8 and Scala 2.12 / kafka.controller.ControllerIntegrationTest.testPartitionReassignmentToBrokerWithOfflineLogDir()
    Build / JDK 8 and Scala 2.12 / org.apache.kafka.streams.integration.NamedTopologyIntegrationTest.shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing
    Build / JDK 17 and Scala 2.13 / kafka.server.DynamicBrokerReconfigurationTest.testThreadPoolResize()
    Build / JDK 17 and Scala 2.13 / kafka.server.DynamicBrokerReconfigurationTest.testThreadPoolResize()
    Build / JDK 11 and Scala 2.13 / kafka.server.DynamicBrokerReconfigurationTest.testThreadPoolResize()
    Build / JDK 11 and Scala 2.13 / kafka.server.DynamicBrokerReconfigurationTest.testThreadPoolResize()

The most frequent flaky tests are under investigation and working on the fix:

  1. shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing is fixing in this PR: MINOR: fix flaky shouldRemoveOneNamedTopologyWhileAnotherContinuesProcessing #11827
  2. testThreadPoolResize is fixing in this PR: KAFKA-13672 Flaky test kafka.server.DynamicBrokerReconfigurationTest.testThreadPoolResize() [WIP] #11821
  3. LeaderElectionCommandTest is fixing in this PR: KAFKA-8785: fix request timeout by waiting for metadata cache up-to-date #11681

The remaining are some flaky tests happened not so frequently.

PS. I've noticed the many flaky tests issue, and are working with the community to make it better. At least, the frequent failed tests should be fixed soon!

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justinrlee : Thanks for following up on this. LGTM

@junrao junrao merged commit f5d8fb2 into apache:trunk Mar 3, 2022
@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 3, 2022

@justinrlee : It would be useful to submit a similar PR to 3.1 too. Thanks.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Mar 7, 2022

Just to double check, @kirktrue this are intended to be public API?

@kirktrue
Copy link
Copy Markdown
Contributor

kirktrue commented Mar 7, 2022

Yes.

Users of the OAuth code will not necessarily code against the classes in this package, but they will need to specify the class names from this package in their config. So it's helpful that the documentation be included for reference for config options and a description of the code behavior.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Mar 7, 2022

If that's the case, then we should only have that one public class in this package. The rest should either be non public or in other packages. Is that how it is?

@kirktrue
Copy link
Copy Markdown
Contributor

kirktrue commented Mar 9, 2022

No, all of the classes (public and non-public) are in the package together. Separating them out should be trivial from a code standpoint but please advise on what is needed to change that the proper way from a process standpoint (KIP, Jira, etc.).

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Mar 9, 2022

@kirktrue : We could just make the changes to expose the proper public API and send an update to the original KIP-768 voting thread so that people are aware of the minor public changes if any.

@kirktrue
Copy link
Copy Markdown
Contributor

kirktrue commented Mar 9, 2022

I have filed KAFKA-13725 to address the package layout bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants