HADOOP-12089. StorageException complaining " no lease ID" when updating FolderLastModifiedTime in WASB. Contributed by Duo Xu.

This commit is contained in:
cnauroth 2015-06-29 13:48:02 -07:00
parent 62e583c7dc
commit 460e98f7b3
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -1500,7 +1500,7 @@ public boolean delete(Path f, boolean recursive,
createPermissionStatus(FsPermission.getDefault()));
} else {
if (!skipParentFolderLastModifidedTimeUpdate) {
store.updateFolderLastModifiedTime(parentKey, null);
updateParentFolderLastModifiedTime(key);
}
}
}
@ -1561,9 +1561,8 @@ public boolean delete(Path f, boolean recursive,
// 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();