This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix validation and defaults for elasticsearch-idx retry-interval
fixes crashes like: ``` Aug 23 09:41:39 dieter-mt1 metrictank[20586]: panic: non-positive interval for NewTicker Aug 23 09:41:39 dieter-mt1 metrictank[20586]: goroutine 70 [running]: Aug 23 09:41:39 dieter-mt1 metrictank[20586]: panic(0xa32980, 0xc82000e9f0) Aug 23 09:41:39 dieter-mt1 metrictank[20586]: /usr/local/go/src/runtime/panic.go:481 +0x3e6 Aug 23 09:41:39 dieter-mt1 metrictank[20586]: time.NewTicker(0x0, 0x14) Aug 23 09:41:39 dieter-mt1 metrictank[20586]: /usr/local/go/src/time/tick.go:23 +0xe4 Aug 23 09:41:39 dieter-mt1 metrictank[20586]: github.com/raintank/metrictank/idx/elasticsearch.(*RetryBuffer).run(0xc820050230, 0x0) Aug 23 09:41:39 dieter-mt1 metrictank[20586]: /home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/idx/elasticsearch/elasticsearch.go:114 +0x5d Aug 23 09:41:39 dieter-mt1 metrictank[20586]: created by github.com/raintank/metrictank/idx/elasticsearch.NewRetryBuffer Aug 23 09:41:39 dieter-mt1 metrictank[20586]: /home/ubuntu/.go_workspace/src/github.com/raintank/metrictank/idx/elasticsearch/elasticsearch.go:67 +0x176 ```
- Loading branch information