Skip to content

Conversation

@bandalgomsu
Copy link

Fix CLUSTER SLOTS crashes when used with fake-client. #2912

I suspect this is due to a race condition occurring when two Fake Clients are freed. Therefore, I implemented a fix to skip the cache lookup when a Fake Client is used.

Thanks


for (int i = 0; i < 100; i++) {
ValkeyModuleCallReply *rep = ValkeyModule_Call(detached_ctx, "CLUSTER", "c", "SLOTS");
ValkeyModule_Log(detached_ctx, "notice", "Worker reply %d", i);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could take a peek at the data which is returned, just enough to know it's correct?

@zuiderkwast zuiderkwast self-requested a review December 5, 2025 17:54
@allenss-amazon
Copy link
Member

allenss-amazon commented Dec 5, 2025

@zuiderkwast This PR was separated tested and was found to solve the problem. So thanks!!

It would be tremendously helpful if this could get into the 9.0.1 release.

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