|
@@ -69,7 +69,6 @@ import org.apache.hadoop.fs.FSDataInputStream;
|
|
|
import org.apache.hadoop.fs.FSDataOutputStream;
|
|
|
import org.apache.hadoop.fs.FileAlreadyExistsException;
|
|
|
import org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData;
|
|
|
-import org.apache.hadoop.fs.FileUtil;
|
|
|
import org.apache.hadoop.fs.FsServerDefaults;
|
|
|
import org.apache.hadoop.fs.FileChecksum;
|
|
|
import org.apache.hadoop.fs.FileStatus;
|
|
@@ -80,7 +79,6 @@ import org.apache.hadoop.fs.MD5MD5CRC32FileChecksum;
|
|
|
import org.apache.hadoop.fs.Options.ChecksumOpt;
|
|
|
import org.apache.hadoop.fs.Path;
|
|
|
import org.apache.hadoop.fs.PathIsNotEmptyDirectoryException;
|
|
|
-import org.apache.hadoop.fs.PathOperationException;
|
|
|
import org.apache.hadoop.fs.RemoteIterator;
|
|
|
import org.apache.hadoop.fs.StorageStatistics.LongStatistic;
|
|
|
import org.apache.hadoop.fs.StorageType;
|
|
@@ -2501,20 +2499,6 @@ public class TestDistributedFileSystem {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- public void testCopyBetweenFsEqualPath() throws Exception {
|
|
|
- Configuration conf = getTestConfiguration();
|
|
|
- try (MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build()) {
|
|
|
- cluster.waitActive();
|
|
|
- final DistributedFileSystem dfs = cluster.getFileSystem();
|
|
|
- Path filePath = new Path("/dir/file");
|
|
|
- dfs.create(filePath).close();
|
|
|
- FileStatus fstatus = dfs.getFileStatus(filePath);
|
|
|
- LambdaTestUtils.intercept(PathOperationException.class,
|
|
|
- () -> FileUtil.copy(dfs, fstatus, dfs, filePath, false, true, conf));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
@Test
|
|
|
public void testNameNodeCreateSnapshotTrashRootOnStartup()
|
|
|
throws Exception {
|