RaigorJiang commented on code in PR #22040:
URL: https://github.com/apache/shardingsphere/pull/22040#discussion_r1018576237


##########
features/readwrite-splitting/distsql/handler/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/checker/ReadwriteSplittingRuleStatementChecker.java:
##########
@@ -67,7 +192,7 @@ private static void checkDuplicateWriteResourceNames(final 
String databaseName,
         for (final ReadwriteSplittingRuleSegment each : segments) {
             if (!Strings.isNullOrEmpty(each.getWriteDataSource())) {
                 String writeDataSource = each.getWriteDataSource();
-                
ShardingSpherePreconditions.checkState(writeDataSourceNames.add(writeDataSource),
 () -> new InvalidRuleConfigurationException("readwrite splitting", 
each.getName(),
+                
ShardingSpherePreconditions.checkState(writeDataSourceNames.add(writeDataSource),
 () -> new InvalidRuleConfigurationException("Readwrite splitting", 
each.getName(),
                         String.format("Can not config duplicate write resource 
`%s` in database `%s`", writeDataSource, databaseName)));

Review Comment:
   Should `resource` be replaced with `storage unit`?



-- 
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]

Reply via email to