Skip to content

The driver does not work with TencentDB redis cluster even Redis CLI still works #12

Description

@cdwxw

Describe the bug

DataGrip throw exception as below when connect to TencentDB redis cluster even Redis CLI still connect and show correct version.

Try to connect TencentDB redis cluster on DataGrip with host bj-crs-qau2gcud.sql.tencentcdb.com and port 23636 and get exception.

DBMS: UNKNOWN (无版本)
区分大小写: 普通形式=mixed, 分隔形式=mixed
驱动程序: Redis JDBC Driver (版本 1.5,JDBC4.2)

Ping: 2秒16毫秒 (keep-alive 查询导致错误)

Unable to get the server mode using the "INFO server" command to check if the connection mode matches the server mode.
No reachable node in cluster.

Image

Check cluster info & info server

[ crs-qau2gcud | DB0 ] # INFO server
# Server
redis_version:7.0.22
redis_git_sha1:a0227f51
redis_git_dirty:0
redis_build_id:572e7c4c731f251c
redis_mode:cluster
os:Linux 5.4.241-1-tlinux4-0017.4 x86_64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:4.8.5
process_id:1447367
process_supervised:no
run_id:e1519df4d9fb75444afa0a0a526cb89fcf12496a
tcp_port:3840
server_time_usec:1740326736157016
uptime_in_seconds:3287544
uptime_in_days:38
hz:10
configured_hz:10
lru_clock:12273488
executable:/data/redis/app/redis-server-ignore-100069902-3840-1-ignore/./redis-server-ignore-100069902-3840-1-ignore
config_file:/data/redis/app/redis-server-ignore-100069902-3840-1-ignore/redis-server-ignore-100069902-3840-1-ignore_redis.conf
io_threads_active:0
[ crs-qau2gcud | DB0 ] # cluster info
cluster_state:ok
cluster_slots_assigned:16384
cluster_slots_ok:16384
cluster_slots_pfail:0
cluster_slots_fail:0
cluster_known_nodes:4
cluster_size:3
cluster_current_epoch:4
cluster_my_epoch:4
instance_arbiter_size:0
instance_arbiter_enabled:0
cluster_stats_messages_ping_sent:3274463
cluster_stats_messages_pong_sent:3439771
cluster_stats_messages_sent:6714234
cluster_stats_messages_ping_received:3439771
cluster_stats_messages_pong_received:3274463
cluster_stats_messages_meet_received:3
cluster_stats_messages_received:6714237
total_cluster_links_buffer_limit_exceeded:0

Platform Versions

  • Redis CLI 7.0
  • DataGrip 2022.3.3 Build #DB-223.8617.3, built on January 10, 2023
  • Driver 1.5 stable
  • MacOS Ventura 13.4

Expected behavior

DataGrip should connect to TencentDB redis cluster as Redis CLI instead of throw the exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions