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
Generic RedisKeyExpiredEvent not delivered to @EventListener anymore in 6.0.9 #30712
Comments
This could be a regression caused by #30399. Does it work if you declare |
I can reproduce this so far that custom generics in an unresolved fashion do not match anymore after that change in 6.0.9. Generally speaking such an event should implement |
Hey @jhoeller thanks for the quick reply. Yes i can confirm that with wildcard the event is delivered again. I think, not setting the generic type is a sufficient workaround for us, as we do not have any other expiry events for other keys in place. Switching back after the new version is released. Thanks for your help. |
I upgraded spring-boot from 6.0.8 to 6.0.9 and noticed, that my @eventlistener is not receiving any RedisKeyExpiredEvent anymore. The method is simply not called. If i use spring-context in version 6.0.8, everything is working fine. So i assume something has changed in this version, which causes this not receiving event anymore.
I enabled the redis events like this on my Application:
@EnableRedisRepositories(enableKeyspaceEvents = RedisKeyValueAdapter.EnableKeyspaceEvents.ON_STARTUP)
The method is annotated like this:
@EventListener public void expiredConfiguredLogLevel(RedisKeyExpiredEvent<ConfiguredLogLevel> redisKeyExpiredEvent){...}
Am i missing something or is this a bug in this version?
The text was updated successfully, but these errors were encountered: