-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed as not planned
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
problem
- The springboot program was hang in virtual and debug mode
- But it was right in run mode.
- I think this is a bug and not a feature. It is right?
Reproduce
env
- Demo:https://github.com/walkertest/spring-boot-virtual-threads-experiment
- Springboot version: 3.2.1
- jdkVersion: jdk21
- virtualThreadMode: true
- Request: curl "127.0.0.1:8082/testFunc?func=syncSleep1"
- code env
private synchronized void syncSleep() {
System.out.println("test");
log.info("syncSleep start");
try {
Thread.sleep(Duration.ofSeconds(1));
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
log.info("syncSleep end");
}
result
debug mode
run mode
Metadata
Metadata
Assignees
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid

