Skip to content

Commit 401052c

Browse files
committed
minor corrections
1 parent 00b426f commit 401052c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ public AbfsClientRenameResult renamePath(
617617

618618
if(op.getResult().getStorageErrorCode()
619619
.equals(UNAUTHORIZED_BLOB_OVERWRITE.getErrorCode())){
620-
throw new FileAlreadyExistsException("File already exists or request not authorized for blob overwrites.");
620+
throw new FileAlreadyExistsException("File already exists.");
621621
}
622622

623623
// ref: HADOOP-18242. Rename failure occurring due to a rare case of

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemDelegationSAS.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public void checkExceptionForRenameOverwrites() throws Exception {
225225

226226
try {
227227
fs.rename(src, dest);
228+
Assertions.fail("Exception expected on rename overwrites.");
228229
} catch (FileAlreadyExistsException e) {
229230
Assertions.assertThat(e)
230231
.isInstanceOf(FileAlreadyExistsException.class);

0 commit comments

Comments
 (0)