-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19670. Replace Thread with SubjectPreservingThread to restore pre JDK22 Subject behaviour in Threads #8062
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
…pre JDK22 Subject behaviour in Threads
|
Rebased on trunk @steveloughran . |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
steveloughran
left a comment
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.
+1 pending some minor changes.
I have looked at all the production code and a few of the tests; all looks good.
one nit about javadocs; some javadoc versions fail if there isn't a "." at the end of the first sentence
and in a couple of places I saw the new import removed a blank line. In these situations, when the line below isn't a org.apache import, keep the line in.
It's a big pr, but each file change is as minimal as you can get, and I don't see any way to do it which is any less complex and which doesn't actually involve bigger code code changes. And I don't see what is to be gained by splitting into different modules unless that's easier to get through yetus
...ct/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/SubjectUtil.java
Outdated
Show resolved
Hide resolved
...ct/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/CombinedHostsFileReader.java
Show resolved
Hide resolved
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/ITestS3AConcurrentOps.java
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
Thanks, I've pushed the change to finish the sentence and restore the blank lines. Re Yetus, there is a fixed version that can deal with large patches, which was included in some previous iterations, but I did not include that here to make the PR directly applicable. |
steveloughran
left a comment
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.
+1
|
what about a separate PR for that yetus update? Anyway, this is is all building locally is it? what modules have you tested? |
|
Opened #8090 which includes the fixed yetus, @steveloughran . Yes, it builds locally, but I have not run the tests locally on this one (I built it with -DskipTests) |
|
I have ran the full test suite a few weeks back on an earlier PR, and confirmed that it does not cause regressions. |
steveloughran
left a comment
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.
+1
|
Big thanks to @stoty @steveloughran, and I think this is the last patch of the UGI compatibility story, so it's time to start backporting to branch-3.4? |
|
Yes, this was the last big one. |
is it realistic to backport all the pieces necessary for newer Java support to the 3.4 maintenance branch? |
|
I don't see any issues, apart from the amount of work required. trunk still compiles and runs the test suite with Java 8 , so the Java 8 requirement in 3.4 is not a problem. Some of the fixes are already backported as they were also needed for JDK 17 (or even for JDK8), but it is still a huge job. |
Description of PR
The second part of HADOOP-19574.
Replace Thread wit SubjectPreservingThread
How was this patch tested?
Tested with HADOOP-19668 which it depends on.
Ran the full test suite with JDK25, and confirmed that it does not cause regressions
(i.e. only tests which also fail with Java 17 fail with Java 25)
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?