-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update Converters.java #2846
Update Converters.java #2846
Conversation
Clean extra character in Cluster Node Line Entry for Google Cloud Platform Memory Store Redis when using the Jedis Connector. Sample entries causing ClusterNode information does not define host and port: 3765733728631672640db35fd2f04743c03119c6 10.180.0.33:11003@16379, master - 0 1708041426947 2 connected 5462-10922
@lightistor Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@lightistor Thank you for signing the Contributor License Agreement! |
@christophstrobl and @mp911de this is a fix to handle the format of the Cluster Node Line Entry for Google Cloud Platform Memory Store Redis that we are integrating our services with. |
Please provide a test case so that we document what isn't working right now for you and what should work. Also, |
fix typo in Converters.java add unit test for the replace for cleaning empty human readable field Clean extra character in Cluster Node Line Entry for Google Cloud Platform Memory Store Redis when using the Jedis Connector. Sample entries causing ClusterNode information does not define host and port: 3765733728631672640db35fd2f04743c03119c6 10.180.0.33:11003@16379, master - 0 1708041426947 2 connected 5462-10922
# Conflicts: # src/main/java/org/springframework/data/redis/connection/convert/Converters.java
fixed the typo, added the unit test (toSetOfRedisClusterNodesShouldConvertNodesWithEmptyHumanReadableClusterNameInGcpMemoryStoreCorrectly, uses the entry format CLUSTER_NODE_ENTRY_WITH_EMPTY_HUMAN_READABLE_CLUSTER_NAME_IN_GCP_MEMORY_STORE) |
So, what is the possibility of it getting merged one day @mp911de ? |
@@ -569,8 +570,9 @@ enum ClusterNodesConverter implements Converter<String, RedisClusterNode> { | |||
|
|||
@Override | |||
public RedisClusterNode convert(String source) { | |||
|
|||
String[] args = source.split(" "); | |||
String filteredSource = source.replace(", ", " "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't do the job especially when auxilliary fields are appended, then the port
part is immediately followed by aux fields.
This PR isn't going anywhere really and the proposed fix is not addressing the underlying issue. As it would require a lot of effort from our side to fix and address shortcomings, we're instead closing this PR without a merge. |
You are right it went no where without any concrete communication, in the time it took to get a response here, we had a temporary fix in the code and then got Google to patch the MemoryStore for the issue. |
Clean extra character in Cluster Node Line Entry for Google Cloud Platform Memory Store Redis when using the Jedis Connector. Sample entries causing ClusterNode information does not define host and port: 3765733728631672640db35fd2f04743c03119c6 10.180.0.33:11003@16379, master - 0 1708041426947 2 connected 5462-10922