JedisCluster fails to execute command hincrbyfloat inside ClusterCommandExecutor#executeCommand(CommandObject<T> commandObject). #3305
Unanswered
sodrulamin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If "the command was executed successfully in redis" then it is most likely that the reply from Redis didn't reach to Jedis in time. This could be network issue, in which case we can't help you. What is your (socket) timeout value? If it small, it'd be a strong recommendation to increase it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting exception while executing
hincrbyfloat
command usingJedisCluster
. This is not a regular case, like If I try to execute the command 1000 times it happens once.I have set max try count to 1 while passing this value in
JedisCluster
constructor.The strange thing is that, even though it throws the exception, the command was executed successfully in redis. As I can see from redis directly.
If I set max try count to 3. Then I see, it prints one
Connection Timeout exception
then try to execute the command again. So, what happens here, the first and second both attempts were successful, as a result the increment was happening twice which was very much unexpected for my case.Full exception for both of these cases is below
I am keeping one
JedisCluster
instance for long time and re-using for multiple times to avoid creating new connection for each command.Can you please suggest what should I do to avoid this situation ? I am thinking to close the instance of
JedisCluster
after certain times. Will it solve the problem ?Beta Was this translation helpful? Give feedback.
All reactions