zhangyz-hd commented on pull request #9002:
URL: https://github.com/apache/dubbo/pull/9002#issuecomment-939309891
再补充下,还是要注意ApplicationModel#onDestroy的处理步骤
是先处理了moduleModel.destroy();
```
for (ModuleModel moduleModel : new ArrayList<>(moduleModels)) {
moduleModel.destroy();
}
```
在这个过程中,因为处理unexportServices,最终就释放了metadataSemaphore,而此时,applicationModel.getDeployer().getState()还是是STARTED
然后再处理deployer.destroy();
```
if (deployer != null) {
deployer.destroy();
deployer = null;
}
```
此时,applicationModel.getDeployer().getState()才会变成STOPPING
--
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]