apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.48k stars 26.43k forks source link

AwaitingNonWebApplicationListener bug #13722

Open 6Glory9 opened 9 months ago

6Glory9 commented 9 months ago

Environment

Steps to reproduce this issue

  1. 依赖加入 spring-cloud-starter-bootstrap,没有任何的容器时

Pls. provide [GitHub address] to reproduce this issue.

Expected Behavior

AwaitingNonWebApplicationListener ,await()方法生效。

Actual Behavior

AwaitingNonWebApplicationListener ,await()方法不生效。

由于 加入spring-cloud-starter-bootstrap 包时 isRootApplicationContext(applicationContext)存在parent contenxt If there is an exception, please attach the exception trace:

Just put your stack trace here!
AlbumenJ commented 9 months ago

Can you please provide a demo?

laywin commented 7 months ago

please assign to me. @AlbumenJ

laywin commented 7 months ago

i think the key is to guaranteed await once and being able to register shutdownhook.

AlbumenJ commented 7 months ago

please assign to me. @AlbumenJ

done