How to run graph commands on a redis cluster using Jedis. #3354
-
We have a production redis cluster where we loaded radisgraph module on all the nodes. We have multiple graphs which will be spread across the cluster using the graph name as hash slot. This is the reason why we want to run it in cluster mode. We have initialized jedis client using a cluster connection provider. We are using the UnifiedJedis interface to call graph queries. public ResultSet graphQuery(String name, String query) { This call executes with a CommandObject and not with ClusterCommand object. This eventually fails in ClusterconnectionProvider class. public Connection getConnection(CommandArguments args) { java.lang.ClassCastException: class redis.clients.jedis.CommandArguments cannot be cast to class redis.clients.jedis.ClusterCommandArguments (redis.clients.jedis.CommandArguments and redis.clients.jedis.ClusterCommandArguments We could not find the graphQuery method which uses a clustercommandobject. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@gauravguptaiitr Thank you for reporting. This is a bug. It didn't get caught as we don't have cluster+graph in test base. We'll work on this as soon as we can. |
Beta Was this translation helpful? Give feedback.
@gauravguptaiitr Thank you for reporting. This is a bug. It didn't get caught as we don't have cluster+graph in test base. We'll work on this as soon as we can.