Skip to content

Commit f4e4877

Browse files
[fix] Fixed redis.exceptions.DataError and extended logging (#252)
1 parent 4bc1713 commit f4e4877

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.5.25"
3+
version = "0.5.26"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "README.md"

redisbench_admin/utils/remote.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,14 @@ def push_data_to_redistimeseries(rts, time_series_dict: dict):
519519
duplicate_policy="last",
520520
)
521521
datapoint_inserts += 1
522+
except redis.exceptions.DataError:
523+
logging.warning(
524+
"Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(
525+
timestamp, value, timeseries_name
526+
)
527+
)
528+
datapoint_errors += 1
529+
pass
522530
except redis.exceptions.ResponseError:
523531
logging.warning(
524532
"Error while inserting datapoint ({} : {}) in timeseries named {}. ".format(

0 commit comments

Comments
 (0)