Skip to content

inode and directory information are inconsistent, causes the directory to be undeletable, and some cmd hang indefinitely. #6375

@blackflash997997

Description

@blackflash997997

What happened:

I used hadoop fs -rmr /a/problem/path to delete the problematic directory, but the command keeps hanging

I tried to delete a problematic directory using:
juicefs rmr /a/problem/path,
and the command kept running and entries increasing , showing progress :
Removing entries: 947963 6104.8/s.

However, when I checked with :juicefs info --strict,

inode: 9427740,
files: 21,
dirs: 8,
length: 2.82 MiB (2958586 Bytes), size: 2.90 MiB (3039232 Bytes).

I then tried to remove it directly using the system command:
rm -rf /a/problem/path,
but received the error:
rm: cannot remove /a/problem/path: Directory not empty.
Finally, when I navigated into the directory with : cd /a/problem/path and ran ll -a,
I got error

ls: cannot open directory .: No such file or directory.

What you expected to happen:

delete the problem path normally

How to reproduce it (as minimally and precisely as possible):

i have no idea to how reproduce it

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions