Sorry for reviving this thread. I have been trying to debug an issue and I wasn't able to find a concrete answer online.
Is INCR command thread safe in a Redis cluster with cluster mode enabled?
We have a python code like this:
connection = cluster_cache.connection
pipeline = connection.pipeline(False)
for j in range(max(start_i, 0), min(end_i, 48)):
subkey = str(j)
pipeline.hincrby(key, subkey, increment)
This is called by concurrently by multiple threads. The updated values don't seem to be what we would expect. But as we are incrementing values for fields in the same key, this should not see any race condition?