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
The storage requires that samples are sorted by timestamp, i.e. a timestamp that is saved to the storage layer must have a timestamp at least as high as the previous sample. This constraint is just by contract so far. It is not checked or enforced.
Unfortunately, that's not trivial as a time series might already be archived when a sample for it comes in again. It's pretty expensive to unarchive a series just to check the latest timestamp.
Ideas:
Never accept timestamps from the future (+/- a certain tolerated skew).
Then the mtime of a time series file is an upper bound for the last timestamp.
When we append a new sample to an archived series, we unarchive the series anyways and get the last timestamp of the series from the unarchiving. So even that case seems to be cheap to check.
Activity
[-]Enforce timestamp monotony[/-][+]Enforce timestamp monotonicity[/+]juliusv commentedon Jul 12, 2015
When we append a new sample to an archived series, we unarchive the series anyways and get the last timestamp of the series from the unarchiving. So even that case seems to be cheap to check.
Implementation: #889
lock commentedon Mar 24, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.