Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redisbench-admin"
version = "0.6.4"
version = "0.6.5"
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
readme = "README.md"
Expand Down
34 changes: 21 additions & 13 deletions redisbench_admin/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,22 +554,30 @@ def exporter_create_ts(rts, time_series, timeseries_name):
)
)
rts.create(timeseries_name, labels=time_series["labels"])
except redis.exceptions.ResponseError:
logging.debug(
"Timeseries named {} already exists. Checking that the labels match.".format(
timeseries_name
except redis.exceptions.ResponseError as e:
if "already exists" in e.__str__():
logging.debug(
"Timeseries named {} already exists. Checking that the labels match.".format(
timeseries_name
)
)
)
set1 = set(time_series["labels"].items())
set2 = set(rts.info(timeseries_name).labels.items())
if len(set1 - set2) > 0 or len(set2 - set1) > 0:
logging.info(
"Given the labels don't match using TS.ALTER on {} to update labels to {}".format(
timeseries_name, time_series["labels"]
set1 = set(time_series["labels"].items())
set2 = set(rts.info(timeseries_name).labels.items())
if len(set1 - set2) > 0 or len(set2 - set1) > 0:
logging.info(
"Given the labels don't match using TS.ALTER on {} to update labels to {}".format(
timeseries_name, time_series["labels"]
)
)
rts.alter(timeseries_name, labels=time_series["labels"])
pass
else:
logging.error(
"While creating timeseries named {} with the following labels: {} this error ocurred: {}".format(
timeseries_name, time_series["labels"], e.__str__()
)
)
rts.alter(timeseries_name, labels=time_series["labels"])
pass
raise


def extract_redisgraph_version_from_resultdict(results_dict: dict):
Expand Down