[ 
https://issues.apache.org/jira/browse/HADOOP-17999?focusedWorklogId=682323&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-682323
 ]

ASF GitHub Bot logged work on HADOOP-17999:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Nov/21 23:37
            Start Date: 16/Nov/21 23:37
    Worklog Time Spent: 10m 
      Work Description: abhishekdas99 commented on a change in pull request 
#3639:
URL: https://github.com/apache/hadoop/pull/3639#discussion_r750770445



##########
File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
##########
@@ -917,13 +917,9 @@ public void removeXAttr(Path path, String name) throws 
IOException {
   }
 
   @Override
-  public void setVerifyChecksum(final boolean verifyChecksum) { 
-    List<InodeTree.MountPoint<FileSystem>> mountPoints = 
-        fsState.getMountPoints();
-    Map<String, FileSystem> fsMap = initializeMountedFileSystems(mountPoints);
-    for (InodeTree.MountPoint<FileSystem> mount : mountPoints) {
-      fsMap.get(mount.src).setVerifyChecksum(verifyChecksum);
-    }
+  public void setVerifyChecksum(final boolean verifyChecksum) {

Review comment:
       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)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 682323)
    Time Spent: 50m  (was: 40m)

> ViewFileSystem.setVerifyChecksum should not initialize all target filesystems
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-17999
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17999
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Abhishek Das
>            Assignee: Abhishek Das
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Currently setVerifyChecksum and setWriteChecksum initializes all target file 
> systems which causes delay in hadoop shell copy commands such as get, put, 
> copyFromLocal etc.
> This also eventually causes OOM.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to