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: add configuration property that allows disabling setting of noti… #26

Closed

Conversation

grusell
Copy link
Contributor

@grusell grusell commented Mar 27, 2024

Fix issue #25 Encore fails to start if redis server is not configured to allow CONFIG command

Before this fix, when starting encore, spring data redis would try to use the CONFIG command to set notify-keyspace-events on the redis server. If the server did not support the CONFIG command, which is the case in many managed redis services, encore would fail to start.

With this fix, setting the property redis.keyspace.disable-config-notifications to true string will stop spring data redis from trying to change the config. If the property is not set, or set to false, spring data redis will behave as before, that is use the CONFIG command to set 'notify-keyspace-events'.

Note that this fix does not seem to solve the issue when native compile is used.

…fy-keyspace-events on redis server

Before this fix, when starting encore, spring data redis
 would try to use the CONFIG command to set
notify-keyspace-events on the redis server. If the server did not support the CONFIG command,
which is the case in many managed redis services, encore would fail to start.

With this fix, setting the property redis.keyspace.disable-config-notifications
to true string will stop spring data redis from trying to change the config.
If the property is not set, or set to true, spring data redis will behave as before,
that is use the CONFIG command to set 'notify-keyspace-events'.

Note that this fix does not seem to work when native compile is used.

Signed-off-by: Gustav Grusell <gustav.grusell@eyevinn.se>
@grusell grusell force-pushed the 25-fails-to-start-with-managed-redis branch from ad96c5f to e85ce9f Compare March 27, 2024 13:45
@grusell
Copy link
Contributor Author

grusell commented Aug 15, 2024

Any chance of getting this merged?

@fhermansson
Copy link
Collaborator

It has been merged in our upstream repo and pushed to master here in GitHub.

@fhermansson fhermansson closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants