[
https://issues.apache.org/jira/browse/CAMEL-22781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045137#comment-18045137
]
Federico Mariani commented on CAMEL-22781:
------------------------------------------
I am going to simplify how Virtual Threads are handled in Camel Spring Boot.
Since there are no real dependencies on Java 21 (Virtual Threads are not
checked in the main code), I'll remove the _src/main/java21_ and move the
PostProcessor and the spring.factories in the _main/java_ anyway, specific
virtual threads options are not set. The PostProcessor is just an utility class
that enables Camel virtual threads if they are enabled in Spring Boot via
system properties.
> camel-spring-boot - Virtual threads test is failing
> ---------------------------------------------------
>
> Key: CAMEL-22781
> URL: https://issues.apache.org/jira/browse/CAMEL-22781
> Project: Camel
> Issue Type: Task
> Components: camel-spring-boot-starters
> Affects Versions: 4.17.0
> Reporter: Thomas Cunningham
> Priority: Minor
>
> Getting the following failure on JDK 21 (this test doesn't run on JDK 17) -
> should camel.threads.virtual.enabled be set in
> SpringBootPlatformHttpAutoConfiguration.java?
> {code:java}
> [INFO] Results:
> [INFO]
> [ERROR] Failures:
> [ERROR]
> org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpCamelVirtualThreadsTest.testCamelVirtualThreadPropertyIsSet
> [ERROR] Run 1:
> SpringBootPlatformHttpCamelVirtualThreadsTest.testCamelVirtualThreadPropertyIsSet:82
> [camel.threads.virtual.enabled should be automatically set when
> spring.threads.virtual.enabled=true]
> expected: "true"
> but was: null
> [ERROR] Run 2:
> SpringBootPlatformHttpCamelVirtualThreadsTest.testCamelVirtualThreadPropertyIsSet:82
> [camel.threads.virtual.enabled should be automatically set when
> spring.threads.virtual.enabled=true]
> expected: "true"
> but was: null
> [ERROR] Run 3:
> SpringBootPlatformHttpCamelVirtualThreadsTest.testCamelVirtualThreadPropertyIsSet:82
> [camel.threads.virtual.enabled should be automatically set when
> spring.threads.virtual.enabled=true]
> expected: "true"
> but was: null
> [INFO]
> [WARNING] Flakes:
> [WARNING]
> org.apache.camel.component.platform.http.springboot.SpringBootPlatformHttpRequestTimeoutTest.testGetAsync
> [ERROR] Run 1: SpringBootPlatformHttpRequestTimeoutTest.testGetAsync:50
> expected: 503 SERVICE_UNAVAILABLE
> but was: 200 OK
> [INFO] Run 2: PASS{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)