Francesco Chicchiriccò created SYNCOPE-1923:
-----------------------------------------------
Summary: Virtual Threads and JDK versions
Key: SYNCOPE-1923
URL: https://issues.apache.org/jira/browse/SYNCOPE-1923
Project: Syncope
Issue Type: Task
Components: docker, documentation
Reporter: Francesco Chicchiriccò
Assignee: Francesco Chicchiriccò
After SYNCOPE-1781, Virtual Threads were ubiquitously adopted, both with
internal thread pools and when running Syncope components as standalone [Spring
Boot
applications|https://docs.spring.io/spring-boot/3.4/reference/features/spring-application.html#features.spring-application.virtual-threads]
e.g. the property
{code:java}
spring.threads.virtual.enabled=true
{code}
was set by default on all components.
JDK 21 was also set as a minimum required version.
It was found recently, however, that Virtual Threads might be troublesome and
lead to concurrency issues, due to a [JDK
bug|https://mail.openjdk.org/pipermail/loom-dev/2024-July/007001.html] that was
fixed with JDK 24.
Thus, the combination of application settings and JDK version might turn into
unstable deployments.
We can address this potential issue by:
* not enabling by default Virtual Threads for Spring Boot
* setting JDK >= 24 for Docker images, with Virtual Threads enabled
* adjusting the documentation
--
This message was sent by Atlassian Jira
(v8.20.10#820010)