VictoriaMetrics/app/victoria-metrics
Aliaksandr Valialkin 4c02e496f7 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:24:51 +02:00
..
deployment all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
test app/victoria-metrics/test: add missing docs to public funcs PopulateTimeTplString and PopulateTimeTpl 2019-10-17 00:50:46 +03:00
testdata app/victoria-metrics: add a test for max_lookback=<duration> query arg 2019-10-15 21:31:48 +03:00
main.go lib/fs: do not postpone directory removal on NFS error 2019-11-10 13:24:51 +02:00
main_test.go Add regression test for query apo 2019-10-07 22:18:04 +03:00
Makefile all: add support for GOARCH=386 and fix all the issues related to 32-bit architectures such as GOARCH=arm 2019-10-17 18:23:23 +03:00