AYue-94 opened a new issue, #12315:
URL: https://github.com/apache/dubbo/issues/12315
### Environment
* Dubbo version: 3.2.0
* Operating System version: macos10.15.7
* Java version: 1.8
### Steps to reproduce this issue
使用各种方式导致Module启动失败。
### Expected Behavior
Module启动失败,不暴露MetadataService。
即不执行DefaultApplicationDeployer#prepareApplicationInstance。
### Actual Behavior
由于org.apache.dubbo.config.deploy.DefaultModuleDeployer#onModuleFailed传入错误的状态STARTED,导致执行DefaultApplicationDeployer#prepareApplicationInstance。
```java
private void onModuleFailed(String msg, Throwable ex) {
try {
setFailed(ex);
logger.error(CONFIG_FAILED_START_MODEL, "", "", "Model start failed:
" + msg, ex);
applicationDeployer.notifyModuleChanged(moduleModel,
DeployState.STARTED);
} finally {
completeStartFuture(false);
}
}
```
--
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]