Merge "Allow persister to handle retention policies in influx"
This commit is contained in:
commit
c923911cb5
@ -56,10 +56,13 @@ class Persister(object):
|
|||||||
|
|
||||||
self._data_points = []
|
self._data_points = []
|
||||||
self._consumer.commit()
|
self._consumer.commit()
|
||||||
except Exception:
|
except Exception as ex:
|
||||||
LOG.exception("Error writing to database: {}"
|
if ex.message.startswith("400: partial write: points beyond retention policy dropped"):
|
||||||
.format(self._data_points))
|
LOG.info("Some points older than retention policy were dropped")
|
||||||
raise
|
else:
|
||||||
|
LOG.exception("Error writing to database: {}"
|
||||||
|
.format(self._data_points))
|
||||||
|
raise ex
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user