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:
   
   
![image](https://user-images.githubusercontent.com/4453100/64092420-52815f00-cd87-11e9-9140-092302ace85f.png)
   
   TableMetaDataLoader.java in 4.0.0-RC2-release:
   
   
![image](https://user-images.githubusercontent.com/4453100/64092513-b4da5f80-cd87-11e9-95b0-08082e8bfbac.png)
   
   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

Reply via email to