Closed mborgraeve closed 9 months ago
I see that you are using spring-cloud version 2023.0.0
. This issue has been reported before and due to an unfortunate bug. See this issue for more details: https://github.com/spring-cloud/spring-cloud-stream/issues/2891
As mentioned, this is already fixed in the latest snapshot, and the next point release will have the fix.
See the release schedule: https://calendar.spring.io/
The next spring-cloud point release (2023.0.1
) is scheduled for March 11th.
Closing the issue, please feel free to reopen if needed. Thanks!
Didn't found it initially, thanks for the quick answer !
Hi, may I know if the version 2023.0.1 will be releasing soon?
@weikangchia Spring Cloud Stream 4.1.1.
just got released and will be part of the 2023.0.1
spring-cloud release train which will be available later today.
Hi,
We are experiencing an issue with our apps using the spring cloud stream framework.
Describe the issue The symptom is a stacktrace for a StackOverFlow exception, caused by some kind of circular reference in the beans generated by Spring Cloud Stream, and triggerred at application shutdown. The beans are being stopped, but loop between one another.
How to reproduce It can be reproduced with this minimal project, either: 1) Running the integration test (note: the test seems to pass, the exception occur after, at shutdown - check the full logs)
or
1) Start the Springboot application 2) Stop it
The same is reproduced from my IDE (IntelliJ -> run the app or the test), and maven (
mvn test
).Version of the framework As in the pom:
Expected behavior We wouldn't expect a stackoverflow exception, with no related logs.
More context
Here is the beginning of the stack trace:
The stack trace then repeats the following tens of times:
While debugging, I noticed the two beans "looping" one another are named
outerContext
andkafka-local_binderProducingContext
(the name of my binder iskafka-local
). I fail to understand why they are related to each other, or how they should be stopped.Happy to provide more details or anything of course ! And feel free to redirect me if this repo isn't the proper place to raise this issue.