Skip to content

Commit 460e98f

Browse files
committed
HADOOP-12089. StorageException complaining " no lease ID" when updating FolderLastModifiedTime in WASB. Contributed by Duo Xu.
1 parent 62e583c commit 460e98f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,9 @@ Release 2.8.0 - UNRELEASED
893893
HADOOP-12119. hadoop fs -expunge does not work for federated namespace
894894
(J.Andreina via vinayakumarb)
895895

896+
HADOOP-12089. StorageException complaining " no lease ID" when updating
897+
FolderLastModifiedTime in WASB. (Duo Xu via cnauroth)
898+
896899
Release 2.7.2 - UNRELEASED
897900

898901
INCOMPATIBLE CHANGES

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ public boolean delete(Path f, boolean recursive,
15001500
createPermissionStatus(FsPermission.getDefault()));
15011501
} else {
15021502
if (!skipParentFolderLastModifidedTimeUpdate) {
1503-
store.updateFolderLastModifiedTime(parentKey, null);
1503+
updateParentFolderLastModifiedTime(key);
15041504
}
15051505
}
15061506
}
@@ -1561,9 +1561,8 @@ public boolean delete(Path f, boolean recursive,
15611561
// Update parent directory last modified time
15621562
Path parent = absolutePath.getParent();
15631563
if (parent != null && parent.getParent() != null) { // not root
1564-
String parentKey = pathToKey(parent);
15651564
if (!skipParentFolderLastModifidedTimeUpdate) {
1566-
store.updateFolderLastModifiedTime(parentKey, null);
1565+
updateParentFolderLastModifiedTime(key);
15671566
}
15681567
}
15691568
instrumentation.directoryDeleted();

0 commit comments

Comments
 (0)