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
{{ message }}
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
I hava some really old datapoints in redis. After I started Roomba, the whole timeseries should be purged as the last timestamp of it is much older than FULL_DURATION(+ ROOMBA_GRACE_TIME) seconds ago, but actually it is not and the variable "euthanized" somehow increased by 1. After going through the source I found that the reason may be the redis transaction is not submitted:
#### Line 94# Check if the last value is too old and purgeiftimeseries[-1][0] <now-duration:
pipe.delete(key)
pipe.srem(namespace+'unique_metrics', key)
# ====== maybe we should call "pipe.execute()" here before "continue" ?euthanized+=1continue
and it is the same situation when purging timeseries which contains only 1 datapoint :
#### Line 75# There's one value. Purge if it's too oldtry:
ifnotisinstance(timeseries[0], TupleType):
iftimeseries[0] <now-duration:
pipe.delete(key)
pipe.srem(namespace+'unique_metrics', key)
# ====== maybe we should call "pipe.execute()" here before "continue" ?euthanized+=1continueexceptIndexError:
continue
'Cause I'm new to Python or Redis, am I missing something ?
The text was updated successfully, but these errors were encountered:
Hi guys, here is the problem I encountered:
I hava some really old datapoints in redis. After I started Roomba, the whole timeseries should be purged as the last timestamp of it is much older than FULL_DURATION(+ ROOMBA_GRACE_TIME) seconds ago, but actually it is not and the variable "euthanized" somehow increased by 1. After going through the source I found that the reason may be the redis transaction is not submitted:
and it is the same situation when purging timeseries which contains only 1 datapoint :
'Cause I'm new to Python or Redis, am I missing something ?
The text was updated successfully, but these errors were encountered: