We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReplicaTopologyProvider can't parse replicas from the info command response.
Install Redis Master/Replica from Bitnami Helm Chart.
kubectl get pod,svc,statefulset NAME READY STATUS RESTARTS AGE pod/redis-chart-master-0 1/1 Running 0 56m pod/redis-chart-replicas-0 1/1 Running 0 56m pod/redis-chart-replicas-1 1/1 Running 0 53m pod/redis-client 1/1 Running 0 13m NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 57m service/redis-chart-headless ClusterIP None <none> 6379/TCP 56m service/redis-chart-master ClusterIP 10.111.112.156 <none> 6379/TCP 56m service/redis-chart-replicas ClusterIP 10.97.3.0 <none> 6379/TCP 56m NAME READY AGE statefulset.apps/redis-chart-master 1/1 56m statefulset.apps/redis-chart-replicas 2/2 56m
I expect lettuce to connect to Master and Replicas to be read from the INFO command.
# Replication role:master connected_slaves:2 slave0:ip=redischartreplicas-0.,port=6379,state=online,offset=3675,lag=0 slave1:ip=redis-chart-replicas-1.,port=6379,state=online,offset=3675,lag=0 master_failover_state:no-failover master_replid:9b5d528bf6aaf92a3e458b0f956c4310fd4bbf9f master_replid2:0000000000000000000000000000000000000000 master_repl_offset:3675 second_repl_offset:-1 repl_backlog_active:1 repl_backlog_size:1048576 repl_backlog_first_byte_offset:1 repl_backlog_histlen:3675
In ReplicaTopologyProvider.java:137 SLAVE_PATTERN can't match slave because of the name in IP.
Slaves to be parsed as is.
Change SLAVE_PATTERN and IP_PATTERN
The text was updated successfully, but these errors were encountered:
Feel free to submit a pull request.
Sorry, something went wrong.
Allow dash symbol (-) in host names for ReplicaTopologyProvider #2375
2ad862f
Original pull request: #2393
b5d9e6b
Successfully merging a pull request may close this issue.
Bug Report
ReplicaTopologyProvider can't parse replicas from the info command response.
Current Behavior
Install Redis Master/Replica from Bitnami Helm Chart.
I expect lettuce to connect to Master and Replicas to be read from the INFO command.
In ReplicaTopologyProvider.java:137 SLAVE_PATTERN can't match slave because of the name in IP.
Expected behavior/code
Slaves to be parsed as is.
Environment
Possible Solution
Change SLAVE_PATTERN and IP_PATTERN
The text was updated successfully, but these errors were encountered: