Failed to recursively delete a directory when the directory has both persisted and unpersisted subfolders

Description

When a persisted folder in Alluxio has a two subfolders, one is persisted; the other is not but with another folder, the recursive deletion of the folder fails. For example, a directory structure like the following:

  • folder

  • persistedFolder

  • unpersistedFolder

  • anotherSubFolder

The deletion fails with error:
ERROR SafeUfsDeleter - The directory cannot be deleted from the ufs as it is not in sync: /folder/persistedFolder

However the inode of /folder/persistedFolder is removed from Alluxio but it leaves the corresponding folder in ufs not deleted.

Environment

None

Status

Assignee

Yupeng Fu

Reporter

Yupeng Fu

Labels

Components

Fix versions

Affects versions

1.5.0

Priority

Critical
Configure