-
Notifications
You must be signed in to change notification settings - Fork 9k
HADOOP-19554. LocalDirAllocator still doesn't always recover from directory deletion #7651
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
HADOOP-19554. LocalDirAllocator still doesn't always recover from directory deletion #7651
Conversation
…ectory deletion * Pull up recreation logic for all branch paths * Lots of logging info * Exception test includes the list of paths. * tests for the failure recovery and reporting changes
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
@@ -393,6 +396,8 @@ int getCurrentDirectoryIndex() { | |||
*/ | |||
public Path getLocalPathForWrite(String pathStr, long size, | |||
Configuration conf, boolean checkWrite) throws IOException { | |||
LOG.debug("searchng for directory for file at {}, size = {}; checkWrite={}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor typo: "searching".
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
Outdated
Show resolved
Hide resolved
I've decided not to target 3.4.2 with this
|
…ectory deletion Logging now builds up the history string and debug logging, with the history logged at ERROR when there's a failure to allocate. goal: find out WTF went wrong even when debug logging was off
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Thanks @steveloughran !
Aah, I left out the last commit. reverted that and will create a new PR with the final changes, which are
|
HADOOP-19554. LocalDirAllocator still doesn't always recover from directory deletion
How was this patch tested?
New and modified unit test cases.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?