spring-projects / spring-data-elasticsearch

Provide support to increase developer productivity in Java when using Elasticsearch. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-elasticsearch/
Apache License 2.0
2.9k stars 1.33k forks source link

AWS ElasticCache issue Config command #2898

Closed hanysakr closed 5 months ago

hanysakr commented 5 months ago

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 EnableRedisRepositories annotation but this empty string is not sending the events from ElasticCache to the application, so I cannot use it. There should be a way to set the keyspaceNotificationsConfigParameter value without registering it on ElasticCache with Config command