You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
It seems that functions (especially producers) do not recover from application restarts. We were trying to use the auto property reload features from Spring AWS and after a context restart our functions are broken.
Watch for successfully consumed messages (It just prints 1, 2, 3, ...)
Restart the application via http POST :8080/actuator/restart
Now the stream functions are broken
Expected behavior
The application should restart and the bindings should be fine again.
The text was updated successfully, but these errors were encountered:
kschlesselmann
changed the title
(Reactive) Bindings do not Recover from an Application Restart
(Reactive) Bindings do not recover from application restart
Feb 13, 2025
I've played around with the sample and it seems like the the producer is not shutdown correctly on restart. Add a print to the producer bean and you'll see that there are two producers after the /restart call. One works as expected and one throws the following error:
org.springframework.messaging.MessageDeliveryException: failed to send Message to channel 'produce_integrationflow.channel#0'
Describe the issue
It seems that functions (especially producers) do not recover from application restarts. We were trying to use the auto property reload features from Spring AWS and after a context restart our functions are broken.
I've created a minimal sample to show the issue.
To Reproduce
Steps to reproduce the behavior:
docker compose up
http POST :8080/actuator/restart
Expected behavior
The application should restart and the bindings should be fine again.
The text was updated successfully, but these errors were encountered: