You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started by creating a new database, importing old data into it, which had been input using influx's http api, most of them with precision=ms.
I then enabled the udp api, didn't specify a precision and started writing measurements without including a timestamp. Everything was okay; I then set precision="s", everything was still okay but at that point I found out I needed higher precision accuracy, so I switched the udp input to ms (still not sending timestamps through udp).
In doing so, all new timestamps are now off by a factor of 1000. I then changed udp.precision back to an empty string, but timestamps are now still off by 1000x. In fact, if I change it to anything else than "s", it's broken.
I don't understand how this behaviour makes sense. The UDP writer should know what unit to use to write to the database; the input precision setting should only be used for decoding timestamp values. When a timestamp value is not specified, it should set the precision of the value it generate, but when writing it to influx it should still know to write a correct timestamp.
In other words, setting the precision without specifying a timestamp should never write bad timestamps; and precision="" should especially not write bad timestamps.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.
Bug report
System info: InfluxDB 1.2, Debian Stretch
Steps to reproduce:
I started by creating a new database, importing old data into it, which had been input using influx's http api, most of them with precision=ms.
I then enabled the udp api, didn't specify a precision and started writing measurements without including a timestamp. Everything was okay; I then set
precision="s"
, everything was still okay but at that point I found out I needed higher precision accuracy, so I switched the udp input toms
(still not sending timestamps through udp).In doing so, all new timestamps are now off by a factor of 1000. I then changed udp.precision back to an empty string, but timestamps are now still off by 1000x. In fact, if I change it to anything else than
"s"
, it's broken.I don't understand how this behaviour makes sense. The UDP writer should know what unit to use to write to the database; the input
precision
setting should only be used for decoding timestamp values. When a timestamp value is not specified, it should set the precision of the value it generate, but when writing it to influx it should still know to write a correct timestamp.In other words, setting the precision without specifying a timestamp should never write bad timestamps; and
precision=""
should especially not write bad timestamps.The text was updated successfully, but these errors were encountered: