Skip to content
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

Catch Throwable instead of NonFatal when starting prod server #10690

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Feb 8, 2021

Fixes #10681

@mkurz mkurz added this to the 2.8.8 milestone Feb 8, 2021
@mkurz
Copy link
Member Author

mkurz commented Feb 8, 2021

@Mergifyio backport 2.8.x

@mergify
Copy link
Contributor

mergify bot commented Feb 8, 2021

Command backport 2.8.x: pending

Waiting for the pull request to get merged

@jxtps
Copy link
Contributor

jxtps commented Feb 8, 2021

Looks good to me, thanks!

@@ -82,14 +81,14 @@ object ProdServerStart {

server
} catch {
case NonFatal(e) =>
case e: Throwable =>
Copy link
Member

Choose a reason for hiding this comment

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

I think this change is fine, but I'm wondering if this catch block should look like:

  case e: Throwable =>
    try {
      pidFile.foreach(_.delete())
    } finally {
      throw e // ignore any exception thrown by `delete`
    }

@mergify mergify bot merged commit ced9bd4 into playframework:master Feb 15, 2021
@mergify
Copy link
Contributor

mergify bot commented Feb 15, 2021

Command backport 2.8.x: success

Backports have been created

@mkurz mkurz deleted the prod_server_throwable branch February 15, 2021 12:47
mergify bot added a commit that referenced this pull request Feb 15, 2021
Catch Throwable instead of NonFatal when starting prod server (bp #10690)
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.

UnsatisfiedLinkError in loader.load should stop the server
3 participants