Skip to content

Commit

Permalink
HADOOP-12089. StorageException complaining " no lease ID" when updati…
Browse files Browse the repository at this point in the history
…ng FolderLastModifiedTime in WASB. Contributed by Duo Xu.
  • Loading branch information
cnauroth committed Jun 29, 2015
1 parent 62e583c commit 460e98f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions hadoop-common-project/hadoop-common/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ public boolean delete(Path f, boolean recursive,
createPermissionStatus(FsPermission.getDefault()));
} else {
if (!skipParentFolderLastModifidedTimeUpdate) {
store.updateFolderLastModifiedTime(parentKey, null);
updateParentFolderLastModifiedTime(key);
}
}
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 460e98f

Please sign in to comment.