[#98] fstree: Do not fail iteration over just removed files #157

Merged
fyrchik merged 1 commit from carpawell/frostfs-node:fix/fstree-iteration-over-deleted-files into master 2023-03-22 07:26:28 +00:00

1 commit

Author SHA1 Message Date
Pavel Karpy
edd4c7be13 [#98] fstree: Do not fail iteration over just removed files
A directory is read and files are saved to a local variable. The iteration
over such files may lead to a non-existing files reading due to a normal SN
operation cycle and, therefore, may lead to a returning the OS error to a
caller. Skip just removed (or lost) files as the golang std library does in
similar situations:
5f1a0320b9/src/os/dir_unix.go (L128-L133).

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
2023-03-21 21:33:18 +03:00