You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/09 14:56:25 UTC
[GitHub] [dubbo] zhangyz-hd edited a comment on pull request #9002: [3.0] Fix #8985, add logic for check localMetadataService.blockUntilUpdated state
zhangyz-hd edited a comment on pull request #9002:
URL: https://github.com/apache/dubbo/pull/9002#issuecomment-939309891
再补充下,还是要注意ApplicationModel#onDestroy的处理步骤
是先处理了moduleModel.destroy();
```
// line=206
for (ModuleModel moduleModel : new ArrayList<>(moduleModels)) {
moduleModel.destroy();
}
```
在这个过程中,因为处理unexportServices,最终就释放了metadataSemaphore,而此时,applicationModel.getDeployer().getState()还是是STARTED
然后再处理deployer.destroy();
```
// line=221
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org