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
|
HADOOP-12119. hadoop fs -expunge does not work for federated namespace
|
||||||
(J.Andreina via vinayakumarb)
|
(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
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1500,7 +1500,7 @@ public class NativeAzureFileSystem extends FileSystem {
|
||||||
createPermissionStatus(FsPermission.getDefault()));
|
createPermissionStatus(FsPermission.getDefault()));
|
||||||
} else {
|
} else {
|
||||||
if (!skipParentFolderLastModifidedTimeUpdate) {
|
if (!skipParentFolderLastModifidedTimeUpdate) {
|
||||||
store.updateFolderLastModifiedTime(parentKey, null);
|
updateParentFolderLastModifiedTime(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1561,9 +1561,8 @@ public class NativeAzureFileSystem extends FileSystem {
|
||||||
// Update parent directory last modified time
|
// Update parent directory last modified time
|
||||||
Path parent = absolutePath.getParent();
|
Path parent = absolutePath.getParent();
|
||||||
if (parent != null && parent.getParent() != null) { // not root
|
if (parent != null && parent.getParent() != null) { // not root
|
||||||
String parentKey = pathToKey(parent);
|
|
||||||
if (!skipParentFolderLastModifidedTimeUpdate) {
|
if (!skipParentFolderLastModifidedTimeUpdate) {
|
||||||
store.updateFolderLastModifiedTime(parentKey, null);
|
updateParentFolderLastModifiedTime(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
instrumentation.directoryDeleted();
|
instrumentation.directoryDeleted();
|
||||||
|
|
Loading…
Reference in New Issue