-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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-17999: Do not initialize all target FileSystems for setWriteChecksum and setVerifyChecksum #3639
Conversation
…ecksum and setVerifyChecksum
🎊 +1 overall
This message was automatically generated. |
…hecksum in ViewFileSystem The same has already been done in ViewFs.
💔 -1 overall
This message was automatically generated. |
for (InodeTree.MountPoint<FileSystem> mount : mountPoints) { | ||
fsMap.get(mount.src).setVerifyChecksum(verifyChecksum); | ||
} | ||
public void setVerifyChecksum(final boolean verifyChecksum) { |
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.
Looks like the default impl. in FileSystem is already no-op. So the value of overriding is only in the comment. May be we should just remove this methods and add a comment to the jira explaining the change.
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.
We still want to keep overriding the two methods in ViewFileSystem (same as ViewFs) so that we explicitly say these are no-ops and doesn't depend on the FileSystem implementation (if anything changes in future)
🎊 +1 overall
This message was automatically generated. |
+1 for the last patch. |
…hecksum in ViewFileSystem. Contributed by Abhishek Das. (#3639)
…hecksum in ViewFileSystem. Contributed by Abhishek Das. (apache#3639)
JIRA: https://issues.apache.org/jira/browse/HADOOP-17999
Description of PR
All the target filesystems corresponding to mount points are initialized in setWriteChecksum and setVerifyChecksum methods. This PR initializes the filesystems lazily
How was this patch tested?
Added unit tests. Also for large number of mount points, hadoop cli commands such as get, put or copyFromLocal were throwing OOM. With the fix, the commands were successful.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?