VictoriaMetrics/app
Aliaksandr Valialkin 5f52eb7653 lib/fs: do not postpone directory removal on NFS error
Continue trying to remove NFS directory on temporary errors for up to a minute.

The previous async removal process breaks in the following case during VictoriaMetrics start

- VictoriaMetrics opens index, finds incomplete merge transactions and starts replaying them.
- The transaction instructs removing old directories for parts, which were already merged into bigger part.
- VictoriaMetrics removes these directories, but their removal is delayed due to NFS errors.
- VictoriaMetrics scans partition directory after all the incomplete merge transactions are finished
  and finds directories, which should be removed, but weren't still removed due to NFS errors.
- VictoriaMetrics panics when it finds unexpected empty directory.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/162
2019-11-10 13:27:16 +02:00
..
vmbackup app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-07 21:26:43 +02:00
vminsert lib/fs: do not postpone directory removal on NFS error 2019-11-10 13:27:16 +02:00
vmrestore app/vmrestore: the upcoming release would be 1.29.0 2019-11-10 00:20:18 +02:00
vmselect lib/fs: do not postpone directory removal on NFS error 2019-11-10 13:27:16 +02:00
vmstorage lib/fs: do not postpone directory removal on NFS error 2019-11-10 13:27:16 +02:00