Skip to content
New issue

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

When using IPv6 with a Redis cluster, executing the keys method will be unable to retrieve the node #3015

Closed
silentmoooon opened this issue Oct 10, 2024 · 1 comment
Assignees
Labels
type: bug A general bug

Comments

@silentmoooon
Copy link

image
The clusterNodes returned by Jedis uses ip:port as the key, but the format of node.asString() is [ip]:port.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 10, 2024
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 10, 2024
@mp911de mp911de added this to the 3.2.11 (2023.1.11) milestone Oct 10, 2024
mp911de added a commit that referenced this issue Oct 10, 2024
We previously used our own mechanism to Render Host and Port causing that IPv6 addresses were enclosed in brackets.

Now we've aligned with Jedis' keying by using HostAndPort that just concatenates the host and port part.

Closes #3015
mp911de added a commit that referenced this issue Oct 10, 2024
We previously used our own mechanism to Render Host and Port causing that IPv6 addresses were enclosed in brackets.

Now we've aligned with Jedis' keying by using HostAndPort that just concatenates the host and port part.

Closes #3015
@mp911de mp911de self-assigned this Oct 10, 2024
@mp911de
Copy link
Member

mp911de commented Oct 10, 2024

That's fixed now. Please use the latest snapshots to verify whether the fix works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants