-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-16453. Upgrade okhttp from 2.7.5 to 4.9.3 #4229
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
the spotbugs failures are probably less a regression the lib as improved nullable declarations in the API letting spotbugs know the code is bad. that bit of okta api use needs to handle null responses better. probably it should check the return type is text/json, as some oauth endpoints (hello microsoft live) will return 200 and human-friendly html on auth problems. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change updates the dependency, so you need to update LICENSE-binary
as well.
...rc/main/java/org/apache/hadoop/hdfs/web/oauth2/ConfRefreshTokenBasedAccessTokenProvider.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/apache/hadoop/hdfs/web/oauth2/ConfRefreshTokenBasedAccessTokenProvider.java
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
…-resources for OkHttpClient
This comment was marked as outdated.
This comment was marked as outdated.
commented.
i'm worried about adding kotlin everywhere. looking at the mvnrepo declarations it is (a) not optional and (b) about 1.5MB including transitive dependencies. so nothing much. my main concern is what pain does it cause downstream. we've had to tag this as an incompatible change just to add in the release notes about where it is used/needed |
Thanks for your comment @steveloughran
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Reading the source code, I think we can simply ignore the warnings. @ashutoshcipher would you add some entries to ignore the spotbugs warning in |
...rc/main/java/org/apache/hadoop/hdfs/web/oauth2/ConfRefreshTokenBasedAccessTokenProvider.java
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
Done |
@ashutoshcipher Thank you for your update. Would you fix the error in https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4229/10/artifact/out/patch-mvninstall-root.txt ? The error message starts with
|
Re-run the precommit job: https://ci-hadoop.apache.org/blue/organizations/jenkins/hadoop-multibranch/detail/PR-4229/12/pipeline |
The error is
I made the hadoop10 node offline https://ci-hadoop.apache.org/computer/hadoop10/ |
This comment was marked as outdated.
This comment was marked as outdated.
@aajisaka - Thanks for re-run. It seems to be completed. Can you please review. Thanks. |
The test failures looks related to HADOOP-18222, but I want to run the precommit job again to validate. |
💔 -1 overall
This message was automatically generated. |
Failed tests are not related to the patch.
|
@ashutoshcipher Would you remove this line? I'm +1 if that is addressed.
|
Thanks for pointing it out, I have addressed it. |
💔 -1 overall
This message was automatically generated. |
Merged. Thank you @ashutoshcipher for your contribution and thanks @steveloughran for your review. |
Co-authored-by: Ashutosh Gupta <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit fb910bd) Conflicts: hadoop-project/pom.xml
Co-authored-by: Ashutosh Gupta <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit fb910bd) Conflicts: hadoop-project/pom.xml
Co-authored-by: Ashutosh Gupta <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit fb910bd) Conflicts: hadoop-project/pom.xml
okhttp 3.14.9 is the latest version which does not depend on kotlin |
The okhttp is used in 1 place but involves a language runtime deps, do we really need this upgrading? And since Hadoop already has |
Co-authored-by: Ashutosh Gupta <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]>
was this the PR which added kotlin as a dependency? if so: please remember to validate license then update the LICENSE-binary file once you have verified it is compatible. |
Raising PR to check
okhttp
upgrade possibility to 4.9.3JIRA: HDFS-16453