Skip to content

Detailed error message when unable to create temp dir - #5648

Merged
jihoonson merged 1 commit into
apache:masterfrom
yuppie-flu:proper-error-message
Apr 17, 2018
Merged

Detailed error message when unable to create temp dir#5648
jihoonson merged 1 commit into
apache:masterfrom
yuppie-flu:proper-error-message

Conversation

@yuppie-flu

Copy link
Copy Markdown
Contributor

Fixes #5576

@gianm gianm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @yuppie-flu! This will be the change that pre-empts a hundred confused mailing list threads :)

I left some comments suggesting minor changes to the error message.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: error messages with line breaks can make it tougher to grep through logs, and also can look weird, so I would leave it out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would also include the current java.io.tmpdir property here, something like, "Failed to create temporary directory in[%s]" & format that with java.io.tmpdir. Using ISE instead of IllegalStateException can help here (it does string formatting in the constructor).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Grammar: "Make sure the java.io.tmpdir property is set to an existing and writable directory."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@yuppie-flu
yuppie-flu force-pushed the proper-error-message branch from b250037 to 04ec201 Compare April 17, 2018 08:07

@gianm gianm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@yuppie-flu

Copy link
Copy Markdown
Contributor Author

What is going on with tests on CI? Failures look very random...
Is the only solution to restart the build?

@gianm

gianm commented Apr 17, 2018

Copy link
Copy Markdown
Contributor

We have been having some trouble with the CI infra recently - sorry about that. I restarted the two tests that didn't pass.

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.

4 participants