strongduanmu commented on code in PR #34340:
URL: https://github.com/apache/shardingsphere/pull/34340#discussion_r1921029526
##########
infra/route/src/main/java/org/apache/shardingsphere/infra/route/engine/tableless/type/unicast/TablelessDataSourceUnicastRouteEngine.java:
##########
@@ -51,7 +51,7 @@ private RouteMapper getDataSourceRouteMapper(final
Collection<String> dataSource
}
private String getRandomDataSourceName(final Collection<String>
dataSourceNames) {
- Collection<String> usedDataSourceNames =
connectionContext.getUsedDataSourceNames().isEmpty() ? dataSourceNames :
connectionContext.getUsedDataSourceNames();
+ Collection<String> usedDataSourceNames = dataSourceNames == null ||
dataSourceNames.isEmpty() ? connectionContext.getUsedDataSourceNames() :
dataSourceNames;
Review Comment:
Hi @JoshuaChen, can you sumbit a issue to describe the problem?
--
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]