Open skladd opened 4 years ago
InfluxDB server checks in httpd.serveWriteV1()
by case "", "n", "ns", "u", "ms", "s", "m", "h":
.
The client checks by time.ParseDuration("1" + conf.Precision)
, whose valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
.
InfluxDB API reference says precision=[ns,u,ms,s,m,h]
Same issue here, it actually broke one of my application. Can somebody from the team take a look ?
@jsternberg @docmerlin May anybody take a look?
I am also experiencing this issue after an unexpected reboot of our server. Is there any solution for this?
@TMarietta Do you really need this specific precision? If not, just use ns precision.
Nevertheless someone of the InfluxDB team should take a look at this PR.
@TMarietta Do you really need this specific precision? If not, just use ns precision.
Nevertheless someone of the InfluxDB team should take a look at this PR.
No. We tried ms and that seems to work fine for our application. Thanks for following up.
At least since InfluxDB server v1.8.0 precision in client cannot be set to micro seconds. Using
"u"
, validation fails inNewBatchPoints()
, using"us"
,Write()
fails:In influxdata/influxdb@275b02e5dd9de98bd4625fa3dcb54ebb3b808158 a verification rejecting write requests with precision
"us"
was added.