betterjava commented on issue #2931: MasterSlave can not work well URL: https://github.com/apache/incubator-shardingsphere/issues/2931#issuecomment-527011161 I think I found the reason of this problem. Let me show my analysis. TableMetaDataLoader.java in dev branch:  TableMetaDataLoader.java in 4.0.0-RC2-release:  In the dev branch,the masterSlave DataSourceName can not match the original DataSourceName in dataSourceMetaDataMap of DataSourceMetas.java. Some logic of masterSlave was removed in DataSourceMetas. If that can not match, catalog will be null. If catalog will be null then the mysql will find the first datasource to search table,in my mysql,the first datasource is admin.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
