-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
No configuration property for defaultTimeout setting that was introduced in Spring Integration 6.2 #41477
Comments
I wonder if we should consider this to be a bug of omission. It makes it hard (you need to use a bean post-processor) to configure the timeout as Boot's auto-configured |
spring.integration.endpoint.defaultTimeout
property
Yes. That's my impression as well, Andy. Although I think as a quick fix for the current state of things we could just add a missed property handling into Spring Boot to give it a chance to make it into the current release train. As a proper fix I think we need to let Spring Integration create its own I understand the purpose of the |
We discussed this today and agreed to consider it a bug of omission. As part of fixing it, we want to add a test so that Boot's build will fail if a property is added to |
Fixes: #361 The default request timeout in Spring Integration is `30 seconds` to not block the thread forever. However, the logic in the Cafe Demo is longer even that one minute to wait for all the drinks to be ready to free an order queue. * Add `spring.integration.endpoint.default-timeout=-1` to wait on the customer request forever for the logic of the application * Add `spring.task.scheduling.pool.size=10` to avoid deadlock when all the scheduled tasks compete for the same thread by default * Upgrade to latest Gradle * Upgrade to the latest Spring Boot Related to: spring-projects/spring-boot#41477
Starting with version
6.2
, Spring Integration provides a global configuration propertyspring.integration.endpoints.defaultTimeout
: https://docs.spring.io/spring-integration/reference/configuration/global-properties.html.Looks like we are missing to cover it in the
IntegrationProperties.Endpoint
and in theIntegrationPropertiesEnvironmentPostProcessor.IntegrationPropertiesPropertySource
.This is an original issue where we have introduced that property, and we even discuss that a Spring Boot improvement: spring-projects/spring-integration#8704
Let me know and I'll be glad to contribute the fix!
Thanks
The text was updated successfully, but these errors were encountered: