thedownup commented on issue #8133:
URL: https://github.com/apache/dubbo/issues/8133#issuecomment-869413318


   > can you provider a demo to reproduce this problem ?
   > In my impression, ContextClosedEvent is used.
   
   AwaitingNonWebApplicationListener.java
    protected void onApplicationReadyEvent(ApplicationReadyEvent event) {
   
           final ConfigurableApplicationContext applicationContext = 
event.getApplicationContext();
   
           if (!isRootApplicationContext(applicationContext) || 
isWebApplication(applicationContext)) {
               return;
           }
   
           if (applicationContextId.compareAndSet(UNDEFINED_ID, 
applicationContext.hashCode())) {
               await();
               releaseOnExit();
           }
       }
   
     好像引入 devtools 时候 这个isWebApplication方法 会返回false 实际上是web环境 就导致执行了 await()  
开启了线程 但是没有监听springboot的关闭事件 没关掉release()  项目报错后进程会一直在 2.7.8之前 
这个类有onContextClosedEvent 没问题
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to