-
Notifications
You must be signed in to change notification settings - Fork 357
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
Using Java7+ NIO API for improved performance #5350
Conversation
83caa92
to
b69481a
Compare
… OS, and do other tricks.
@jansupol You asked me to provide these changes explicitly for the master branch, so why not merging it? The PR is open since three weeks, and it solely contains backports of the already reviewed original PR from the 3.x branch. |
core-common/src/main/java/org/glassfish/jersey/message/internal/ReaderWriter.java
Outdated
Show resolved
Hide resolved
...e/tools/src/main/java/org/glassfish/jersey/tests/performance/tools/TestDataGeneratorApp.java
Show resolved
Hide resolved
@jansupol I think the communication between Github and Jenkins is broken. I fixed another missing import last night and now Github says it is waiting for the build, but Jenkins says no builds are queued. Is there a way to manually trigger the build? |
@mkarg, the build is triggered manually, but it does not pass compilation on JDK 1.8 (that thread has already failed). |
@senivam Thank you for triggering the build. Let's wait for it to finish. If there are still bugs in the PR I will fix them ASAP once reported. Edit: Ah, I see. The |
@senivam Maxim, it seems there are no more Java problems in this PR other than the ones produced by Github/Jenkins themselves. In particular, I assume this is unrelated to my work:
|
I've run the build again, the previous attempt even did not start properly (it's kind of known Eclipse's CI issue). |
Thank you. Meanwhile your manually triggered build terminated successfully, so this PR is (at last!) ready to merge. 🥳 |
@jansupol Is there something else you want me to fix in this PR? I have not seen open comments, and the last status update is |
@senivam Maxim I wonder why there is no progress with this PR. It fulfils all changes requested by Jan since weeks. Jan did not answer, so maybe you could share some thoughts what I need to do to finally get this PR merged? Thanks a lot! :-) |
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.
@mkarg No need to do anything, this looks good. Thanks.
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.
LGTM
### What changes were proposed in this pull request? This pr aims upgrade Jersey from 2.40 to 2.41. ### Why are the changes needed? The new version bring some improvements, like: - eclipse-ee4j/jersey#5350 - eclipse-ee4j/jersey#5365 - eclipse-ee4j/jersey#5436 - eclipse-ee4j/jersey#5296 and some bug fix, like: - eclipse-ee4j/jersey#5359 - eclipse-ee4j/jersey#5405 - eclipse-ee4j/jersey#5423 - eclipse-ee4j/jersey#5435 - eclipse-ee4j/jersey#5445 The full release notes as follows: - https://github.com/eclipse-ee4j/jersey/releases/tag/2.41 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #43490 from LuciferYang/SPARK-45636. Lead-authored-by: YangJie <yangjie01@baidu.com> Co-authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Sean Owen <srowen@gmail.com>
This PR is a partial backport of #5341 as proposed by @jansupol in #5341 (comment).
Compared to PR 5341 it only contains those changes which are compatible with Java 8. In particular this means, it mostly consists of using Java 7+ NIO API plus some more improvements, while the actual benefit (preventing data transmission via the JVM's RAM implemented by
ChannelInputStream::transferTo
in recent JREs) is missing due to the fact thatInputStream::transferTo
was not added to the JRE before Java 9.