-
Notifications
You must be signed in to change notification settings - Fork 677
[#1916] Get Java version from application.conf #835
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
getJavaVersion() spawns a subprocess, which breaks Upstart (http://upstart.ubuntu.com/) which expects Play to fork exactly none, once or twice, depending on which "expect" stanza you use.
|
I understand the goal here, but this change would be very inconvenient. Perhaps we can add a command line argument to specify the Java version instead, and have it fall back to the current behavior if the argument isn't provided. That would be much more convenient for the majority of use cases. |
|
@gpgekko I agree, problem with this PR is that "java.source" version is not necessary the version of the running JVM |
I'll amend the PR, but first please answer these questions:
|
|
Flag-only. As for the name, I'm not sure, there seem to be mixed conventions ( |
- add test for case where jvm_version flag is supplied - add test for case where jvm_version flag is omitted - add Python mock library for new tests - remove jpda.port re-initialisation in application.py's check_jpda() since this value is already initialised in __init__() - add contextual documentation in cmd-start.txt
|
Perhaps change the title of the pull request for future reference. The rest looks fine to me. |
|
👍 |
|
I don't think this got merged yet? |
|
Those buttons are too close together. |
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.
Why did you remove this line?
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.
I think he might be referencing that in #835 (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.
Ok saw it thanks
[#1916] Get Java version from application.conf
|
Merged and pushed in master and 1.3.x. |
getJavaVersion()(introduced in 8f5e3e5) spawns a subprocess, which bumps the PID count, which breaks Upstart, the latter which expects Play to fork exactly none, once or twice, depending on whichexpectstanza you use.