You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/18 04:01:54 UTC
[GitHub] [shardingsphere] sandynz commented on issue #12485: [DistSQL][Scaling] `RALBackendHandlerFactory` needs to be optimized.
sandynz commented on issue #12485:
URL: https://github.com/apache/shardingsphere/issues/12485#issuecomment-922174768
Server config check:
```
private static void checkServerConfig() {
ServerConfiguration serverConfig = ScalingContext.getInstance().getServerConfig();
Preconditions.checkNotNull(serverConfig, "Scaling server configuration is required.");
Preconditions.checkNotNull(serverConfig.getModeConfiguration(), "Mode configuration is required.");
Preconditions.checkArgument("Cluster".equals(serverConfig.getModeConfiguration().getType()), "Mode must be `Cluster`.");
}
```
Call hierarchy:
```
ScalingAPIFactory.checkServerConfig() (org.apache.shardingsphere.scaling.core.api)
getInstance() in ScalingAPIHolder in ScalingAPIFactory (org.apache.shardingsphere.scaling.core.api)
ScalingAPIFactory.getScalingAPI() (org.apache.shardingsphere.scaling.core.api)
```
--
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@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org