HADOOP-17396. ABFS: testRenameFileOverExistingFile fails (#2491)

Contributed by Sneha  Vijayarajan.
This commit is contained in:
Sneha Vijayarajan 2020-11-26 15:41:25 +05:30 committed by GitHub
parent 2ce2198287
commit 009ce4f02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,11 @@ public ITestAbfsFileSystemContractRename() throws Exception {
public void setup() throws Exception {
binding.setup();
super.setup();
// Base rename contract test class re-uses the test folder
// This leads to failures when the test is re-run as same ABFS test
// containers are re-used for test run and creation of source and
// destination test paths fail, as they are already present.
binding.getFileSystem().delete(binding.getTestPath(), true);
}
@Override

View File

@ -38,6 +38,11 @@
<value>false</value>
</property>
<property>
<name>fs.contract.rename-returns-false-if-dest-exists</name>
<value>true</value>
</property>
<!--==================== ABFS CONFIGURATION ====================-->
<!-- SEE relevant section in "site/markdown/testing_azure.md"-->