HADOOP-12089. StorageException complaining " no lease ID" when updating FolderLastModifiedTime in WASB. Contributed by Duo Xu.
This commit is contained in:
parent
62e583c7dc
commit
460e98f7b3
|
@ -893,6 +893,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HADOOP-12119. hadoop fs -expunge does not work for federated namespace
|
||||
(J.Andreina via vinayakumarb)
|
||||
|
||||
HADOOP-12089. StorageException complaining " no lease ID" when updating
|
||||
FolderLastModifiedTime in WASB. (Duo Xu via cnauroth)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1500,7 +1500,7 @@ public class NativeAzureFileSystem extends FileSystem {
|
|||
createPermissionStatus(FsPermission.getDefault()));
|
||||
} else {
|
||||
if (!skipParentFolderLastModifidedTimeUpdate) {
|
||||
store.updateFolderLastModifiedTime(parentKey, null);
|
||||
updateParentFolderLastModifiedTime(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1561,9 +1561,8 @@ public class NativeAzureFileSystem extends FileSystem {
|
|||
// Update parent directory last modified time
|
||||
Path parent = absolutePath.getParent();
|
||||
if (parent != null && parent.getParent() != null) { // not root
|
||||
String parentKey = pathToKey(parent);
|
||||
if (!skipParentFolderLastModifidedTimeUpdate) {
|
||||
store.updateFolderLastModifiedTime(parentKey, null);
|
||||
updateParentFolderLastModifiedTime(key);
|
||||
}
|
||||
}
|
||||
instrumentation.directoryDeleted();
|
||||
|
|
Loading…
Reference in New Issue