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

fix: jsonRespository.DoCache does not hang when redisjson module is not installed #594

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

ajayd-san
Copy link
Contributor

Hey,

This fixes #591

Let me know if i have to add anything else.

client.go Outdated
@@ -248,7 +248,7 @@ func (c *dedicatedSingleClient) release() {
}

func (c *singleClient) isRetryable(err error, ctx context.Context) bool {
return err != nil && atomic.LoadUint32(&c.stop) == 0 && ctx.Err() == nil
return err != nil && atomic.LoadUint32(&c.stop) == 0 && ctx.Err() == nil && err != ErrDoCacheAborted
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @ajayd-san, thanks! Could you change the order of the new check? Move it to the in front of the atomic.LoadUint32.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@rueian rueian merged commit 2d299e6 into redis:main Jul 27, 2024
19 checks passed
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.

Sample code for Generic Object Mapping hangs indefinitely
2 participants