HADOOP-15819. FileSystem cache misused in S3A integration tests. Contributed by Adam Antal.
This commit is contained in:
parent
dea2c1b485
commit
d8f670ff28
@ -153,8 +153,6 @@ public void setup() throws Exception {
|
|||||||
taskAttempt1 = TaskAttemptID.forName(attempt1);
|
taskAttempt1 = TaskAttemptID.forName(attempt1);
|
||||||
|
|
||||||
outDir = path(getMethodName());
|
outDir = path(getMethodName());
|
||||||
S3AFileSystem fileSystem = getFileSystem();
|
|
||||||
bindFileSystem(fileSystem, outDir, fileSystem.getConf());
|
|
||||||
abortMultipartUploadsUnderPath(outDir);
|
abortMultipartUploadsUnderPath(outDir);
|
||||||
cleanupDestDir();
|
cleanupDestDir();
|
||||||
}
|
}
|
||||||
@ -196,18 +194,6 @@ protected Configuration createConfiguration() {
|
|||||||
return conf;
|
return conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Bind a path to the FS in the cache.
|
|
||||||
* @param fs filesystem
|
|
||||||
* @param path s3 path
|
|
||||||
* @param conf configuration
|
|
||||||
* @throws IOException any problem
|
|
||||||
*/
|
|
||||||
private void bindFileSystem(FileSystem fs, Path path, Configuration conf)
|
|
||||||
throws IOException {
|
|
||||||
FileSystemTestHelper.addFileSystemForTesting(path.toUri(), conf, fs);
|
|
||||||
}
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Bind to the committer from the methods of
|
* Bind to the committer from the methods of
|
||||||
* {@link #getCommitterFactoryName()} and {@link #getCommitterName()}.
|
* {@link #getCommitterFactoryName()} and {@link #getCommitterName()}.
|
||||||
|
Loading…
Reference in New Issue
Block a user