-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConditionDistributedEmbedStorage这块的逻辑是不是存在问题? #12273
Comments
有区别, 默认值是standalonemode, 但是集群模式时也可以指定derby数据库作为存储, 此时会由于设置的不同,导致虽然不是standalone, 但是isEmbeeded=true |
你的意思是 会导致isEmbeddedStorage的取值和EnvUtil.getStandaloneMode()取值不一样?? 现在看起来这两个的取值是一样的 所以没理解 |
bin/startup.sh -p embedded 这样启动的时候不加standaone,就会以集群模式启动EmbeddedStorage。 此时getStandaloneMode和isEmbeddedStorage不一致。 |
明白了,谢谢。打扰您了! |
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
return DatasourceConfiguration.isEmbeddedStorage() && !EnvUtil.getStandaloneMode();
}
isEmbeddedStorage的取值就是EnvUtil.getStandaloneMode()啊,为什么要这样写???
The text was updated successfully, but these errors were encountered: