Skip to content

AWS ElasticCache issue with Config command #2894

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

Closed
hanysakr opened this issue Apr 16, 2024 · 1 comment
Closed

AWS ElasticCache issue with Config command #2894

hanysakr opened this issue Apr 16, 2024 · 1 comment
Labels
status: invalid An issue that we don't feel is valid

Comments

@hanysakr
Copy link

hanysakr commented Apr 16, 2024

AWS ElasticCache has disabled few commands one of them is Config command
When I try to set keyspaceNotificationsConfigParameter to any value it will try to call the config command and fail with error
"ERR unknown command 'CONFIG', with args beginning with: 'GET' 'notify-keyspace-events' "
I found that KeyspaceEventMessageListener class is trying to register this value on ElasticCache, and there is no way to escape it unless using empty string with EnableRedisRepositories annotation, but the empty string is not sending the events from ElasticCache to the listener, so I cannot use it as empty.
There should be a way to set the keyspaceNotificationsConfigParameter value without registering it on ElasticCache with Config command

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 16, 2024
@hanysakr hanysakr changed the title AWS ElasticCache issue Config command AWS ElasticCache issue with Config command Apr 16, 2024
@mp911de
Copy link
Member

mp911de commented Apr 16, 2024

@EnableRedisRepositories(keyspaceNotificationsConfigParameter) is designed for getting started locally quickly. You should not use this mechanism in production to avoid reconfiguring your Redis server that might be configured differently to serve multiple applications.

That being said, please configure your Elasticsearch server via the console with at least Ex for notify-keyspace-events.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
@mp911de mp911de added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 16, 2024
@mp911de mp911de marked this as a duplicate of #3151 May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants