Skip to content

Conversation

@kistlers
Copy link
Contributor

@kistlers kistlers commented Oct 9, 2025

This is an attempt to make issue #10471 work without support for SPUBLISH.
I append the lockKey to the channelUnlockKey. This allows us to control the cluster slot cache this operation is hashed into, by including a hash tag ({...}) in the lockKey. Refer to the issue description for an explanation of why this matters.

As a consequence, I had to change the ChannelTopic to a PatternTopic to keep receiving subscription events for the PubSub lock.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add DCO into your commit message before we start reviewing: https://spring.io/blog/2025/01/06/hello-dco-goodbye-cla-simplifying-contributions-to-spring.
Thanks

@kistlers
Copy link
Contributor Author

kistlers commented Oct 9, 2025

Please, add DCO into your commit message before we start reviewing: https://spring.io/blog/2025/01/06/hello-dco-goodbye-cla-simplifying-contributions-to-spring. Thanks

Done!

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more closer to what I won't worry about 😄 .

If you confirm that this works with Valkey, please, add your name to the @author list of the changed class.

Please, also rebase your branch (and re-push to PR) to the latest main as I've just pushed the fix Redis tests according to the latest Spring Data Redis.

Thanks

…ontrol cluster slot hashing

As a consequence, change the ChannelTopic to a PatternTopic to keep receiving subscription events for PubSub lock

Signed-off-by: Severin Kistler <kistlerseverin@gmail.com>
…f `ARGV[2]` as values used as keys should be passed as such

Signed-off-by: Severin Kistler <kistlerseverin@gmail.com>
@kistlers
Copy link
Contributor Author

According to my tests against valkey this is working.
My name is in the authors list of the file and I have rebased the branch. While at it, I prepended the issue id to the commit messages.

@kistlers kistlers requested a review from artembilan October 10, 2025 07:42
@kistlers kistlers requested a review from artembilan October 10, 2025 14:20
@artembilan artembilan merged commit af6d5a9 into spring-projects:main Oct 10, 2025
3 checks passed
@artembilan
Copy link
Member

@kistlers ,

thank you for contribution; looking forward for more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants