Skip to content

Conversation

@gaborgsomogyi
Copy link
Contributor

What changes were proposed in this pull request?

While I was reviewing #24235 I've found a minor addition possibility. Namely FileSystem.delete returns a boolean which is not yet checked. In this PR I've added a warning message when it returns false. I've added this as MINOR because no control flow change introduced.

How was this patch tested?

Existing unit tests.

@gaborgsomogyi
Copy link
Contributor Author

cc @srowen

@SparkQA
Copy link

SparkQA commented Apr 1, 2019

Test build #104162 has finished for PR 24263 at commit 2b1bcdc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 2, 2019

Test build #104191 has finished for PR 24263 at commit 859e6f9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

}
fileSystem.delete(path, true)
if (fileSystem.delete(path, true)) {
logInfo("Deleted checkpoint file '" + file + "' for time " + time)
Copy link
Member

Choose a reason for hiding this comment

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

While you're welcome to use string interpolation here while you're at it, this seems fine

@srowen
Copy link
Member

srowen commented Apr 2, 2019

Merged to master

@srowen srowen closed this in 3628242 Apr 2, 2019
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