-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BEAM-6630] upgrade to gradle 5.2 #7787
Conversation
R: @swegner |
Exciting! Some other features that 5.0 brings which we might find useful:
|
Definitely excited to try the Kotlin DSL. Even better than just getting types, it is getting one of the most modern type systems available in a mainstream language. |
Run Java PostCommit |
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. All tests are green, is this ready to go in?
@swegner |
Thx, @swegner Will monitor next few Jenkins build to see which impact this has. |
I skimmed through the Jenkins jobs that run continuously; I don't see anything broken, and the only significant execution time diff I noticed is Before (#3174): 16min, after (#3175): 8min. Comparing the Gradle scans (before, after), the I wonder what the cause of the improvement is; maybe the differences in how Gradle allocated memory to the test tasks? /cc @mxm @tweise |
Hmm... nice. Unfortunately, I have now idea how this is (or even could be) related to the gradle upgrade. We probably reduced memory available to the test jvm (was: 1/4th of physically available mem, is: 2G). I assume, we do have more than 8G on the Jenkins agents, but I did not find yet any documentation on that. Even if mem would be increased now - and test jvm was gc'ing all the time, I have no idea, why batch should require significantly more memory compared to streaming? |
Thanks for sharing @swegner. That's indeed an interesting change. It could come from the batch algorithms spilling to disk which is terribly slow compared to processing everything in memory. I've seen deletion of spilling directories while running tests. Looking at the tests, it is surprising some of them take so long. There is room for improvement because every test brings up a mini Flink cluster at the moment. Some form of caching would be desirable. |
One hypothesis: the overall reduction in Gradle task memory usage has left more available memory for the local Flink cluster. It's to say for sure, the Gradle scan doesn't give a whole lot of context. At any rate, the improvement has stuck over the last 15 runs, and the first run showing improvement only has the Gradle 5 upgrade in the delta. |
The apex validate runner test has started to fail since this change https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/buildTimeTrend |
I ll have a look. Thank you very much for reporting. |
Opened #7861 to fix Apex Runner failing with OutOfMemoryError. |
Yet another one: Any hint whom to ask about that portable runner flink stuff? |
Please ask me :) Also |
thx @mxm... will try to understand what's going on there and come back to ask questions |
Release publish fails with this change. Reverting one commit (cadb6f7) to downgrade gradle resolves the issue: https://issues.apache.org/jira/browse/BEAM-6726 |
Upgrade to the latest gradle 5.2.1
This will
Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username
) to look at it.Post-Commit Tests Status (on master branch)