[ https://issues.apache.org/jira/browse/HDFS-11912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035593#comment-16035593 ]
George Huang commented on HDFS-11912: ------------------------------------- 8. // Get list of snapshottable directories SnapshottableDirectoryStatus[] snapshottableDirectoryStatus = hdfs.getSnapshottableDirListing(); for (SnapshottableDirectoryStatus ssds : snapshottableDirectoryStatus) { snapshottableDirectories.add(ssds.getFullPath()); } Above code is a no-op as the test hasn't set up any allow snapshots on any directories yet. Can we remove the block ? => Actually files and directories were already created from the call to createFiles() before lines listed above. At this time we are ready to get a list of snapshottable directories. > Add a snapshot unit test with randomized file IO operations > ----------------------------------------------------------- > > Key: HDFS-11912 > URL: https://issues.apache.org/jira/browse/HDFS-11912 > Project: Hadoop HDFS > Issue Type: Test > Components: hdfs > Reporter: George Huang > Priority: Minor > Attachments: HDFS-11912.001.patch > > > Adding a snapshot unit test with randomized file IO operations. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org