dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

AwaitingNonWebApplicationListener bug

Open 6Glory9 opened this issue 1 year ago • 4 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 3.2.6
  • Operating System version: xxx
  • Java version: 21

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!

6Glory9 avatar Feb 01 '24 09:02 6Glory9

Can you please provide a demo?

AlbumenJ avatar Feb 02 '24 06:02 AlbumenJ

please assign to me. @AlbumenJ

laywin avatar Mar 12 '24 06:03 laywin

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

laywin avatar Mar 12 '24 07:03 laywin

please assign to me. @AlbumenJ

done

AlbumenJ avatar Mar 12 '24 09:03 AlbumenJ