This seems to happen mostly when listing folders containing 10k+ folders.

The dirlisting hangs indefinitely or until i restart the active MDS and then the hanging "ls" command will finish running.

Every time restarting the active MDS fixes the problem for a while.