Skip to content

Conversation

@opyate
Copy link
Contributor

@opyate opyate commented Feb 12, 2015

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 which expect stanza you use.

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.
@xael-fry
Copy link
Member

Lighthouse #1916

@gpgekko
Copy link
Contributor

gpgekko commented Feb 13, 2015

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.

@xael-fry
Copy link
Member

@gpgekko I agree, problem with this PR is that "java.source" version is not necessary the version of the running JVM

@opyate
Copy link
Contributor Author

opyate commented Feb 13, 2015

@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:

  • What would you like me to call the flag? (e.g. jvm_version, equivalent to pid_file)
  • Flag-only, or also support for it in application.conf? (my guess here is No, since it only affects app startup behaviour, just like pid_file does)

@gpgekko
Copy link
Contributor

gpgekko commented Feb 13, 2015

Flag-only. As for the name, I'm not sure, there seem to be mixed conventions (--pid_file vs --http.port). Either way, the documentation and help text / command description will need to be updated to reflect the changes.

- 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
@gpgekko
Copy link
Contributor

gpgekko commented Feb 17, 2015

Perhaps change the title of the pull request for future reference. The rest looks fine to me.

@opyate
Copy link
Contributor Author

opyate commented Feb 17, 2015

👍

@opyate opyate closed this Feb 17, 2015
@gpgekko
Copy link
Contributor

gpgekko commented Feb 18, 2015

I don't think this got merged yet?

@opyate
Copy link
Contributor Author

opyate commented Feb 18, 2015

Those buttons are too close together.

@opyate opyate reopened this Feb 18, 2015
@xael-fry xael-fry changed the title get Java version from application.conf [#1916] Get Java version from application.conf Mar 3, 2015
Copy link
Member

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?

Copy link
Contributor

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok saw it thanks

xael-fry added a commit that referenced this pull request Apr 27, 2015
[#1916] Get Java version from application.conf
@xael-fry xael-fry merged commit b735e04 into playframework:master Apr 27, 2015
@xael-fry
Copy link
Member

Merged and pushed in master and 1.3.x.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants