#2518 util: [rmtree] try best to catch errors for race condition
Merged by tkopecek. Opened by julian8628.
julian8628/koji issue/2481  into  master

Download 2518.patch

fixes: #2481

This approach is ugly, but just working.

ENOENT and ESTALE errors are catched in chdir, listdir calls to stomach the deletion by other process/thread

ENOTEMPTY is catched when calling os.rmdir(path) in rmtree() too. It happens when path is on an NFS like where ESTALE happens.

Metadata Update from @julian8628:
- Pull-request tagged with: testing-ready

Commit 91914748 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

Metadata