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

[SMALLFIX] Fix LOG.warn without context #6924

Merged
merged 1 commit into from Mar 7, 2018

Conversation

apc999
Copy link
Contributor

@apc999 apc999 commented Mar 2, 2018

Logging messages from LOG.warn(e.getMessage()); will not be able to locate.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

1 similar comment
@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/18775/
Test PASSed.

@alluxio-bot
Copy link
Contributor

Automated checks report:

  • Valid pull request title: PASS
  • Commits associated with Github account: PASS

All checks passed!

@apc999 apc999 requested a review from gpang March 5, 2018 21:51
@Alluxio Alluxio deleted a comment from AmplabJenkins Mar 6, 2018
@Alluxio Alluxio deleted a comment from AmplabJenkins Mar 6, 2018
@apc999
Copy link
Contributor Author

apc999 commented Mar 6, 2018

@gpang PTAL

Copy link
Contributor

@gpang gpang left a comment

Choose a reason for hiding this comment

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

I just left a minor comment.

LGTM

@@ -1504,7 +1504,7 @@ private void deleteFromEntry(DeleteFileEntry entry) {
failedToDelete = !ufsDeleter.delete(alluxioUriToDel, delInode);
}
} catch (InvalidPathException e) {
LOG.warn(e.getMessage());
LOG.warn("Failed to delete path from UFS: {}", e.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

Will e.getMessage() already include the UFS path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This exception is thrown when ufsDeleter failed to resolve mount table as the alluxio URL is invalid.
thus, it is about alluxio URL which will be included in exception message

@apc999 apc999 merged commit 049041a into Alluxio:branch-1.7 Mar 7, 2018
@apc999 apc999 deleted the branch-1.7-smallfix3 branch March 16, 2018 21:22
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.

None yet

4 participants