Skip to content

Commit

Permalink
Delete metadata that has been deleted in UFS when the client cancels.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovewin99 committed Aug 16, 2023
1 parent 6dc8ed2 commit 4e15053
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,10 @@ public void deleteInternal(RpcContext rpcContext, LockedInodePath inodePath,
// We go through each inode, removing it from its parent set and from mDelInodes. If it's a
// file, we deal with the checkpoints and blocks as well.
for (int i = inodesToDelete.size() - 1; i >= 0; i--) {
rpcContext.throwIfCancelled();
if (rpcContext.isCancelled()) {
inodesToDelete.set(i, null);
continue;
}
Pair<AlluxioURI, LockedInodePath> inodePairToDelete = inodesToDelete.get(i);
AlluxioURI alluxioUriToDelete = inodePairToDelete.getFirst();
Inode inodeToDelete = inodePairToDelete.getSecond().getInode();
Expand Down

0 comments on commit 4e15053

Please sign in to comment.