Skip to content

springboot http handler was hang in debug-virtualthread mode #39233

@walkertest

Description

@walkertest

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

    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

image

run mode

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions