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 2022/01/05 02:40:54 UTC

[GitHub] [shardingsphere] jlovej commented on issue #14518: springboot + shardingSphere5.0 + Dubbo2.7.x实现分库分表的情况下,集成 + seata1.4.2后,报出以下异常: Could not found any index in the table: xxx #4252

jlovej commented on issue #14518:
URL: https://github.com/apache/shardingsphere/issues/14518#issuecomment-1005333351


   > 各位大神好,我在springboot + seata1.4.2 + Dubbo2.7.x实现分库分表(3个库,t_order分4张表)的情况下,集成 + shardingSphere5.0 后,报出以下异常: Could not found any index in the table: xxx,查看了下源码,在seata1.4.2中的io.seata.rm.datasource.sql.struct.cache.MysqlTableMetaCache#resultSetMetaToSchema方法调用org.apache.shardingsphere.driver.jdbc.core.datasource.metadata.ShardingSphereDatabaseMetaData#getIndexInfo时无法获取到MetaData的主键与索引信息,最终导致seata中的(tm.getAllIndexes().isEmpty()】这行条件成立就会抛出异常,请问是什么原因,谢谢。
   
   To english:
   Springboot + Seata1.4.2 + Dubbo2.7.x + shardingSphere5.0
   
   Could not found any index in the table: XXX, looked at the source code, IO in seata1.4.2. Seata. Rm. The datasource. SQL. Struct. Cache. MysqlTableMetaCache# resultSetMetaToSchema method call org. Apache. Shardingsph Ere. Driver. JDBC. Core. The datasource. Metadata. ShardingSphereDatabaseMetaData# getIndexInfo when unable to get the primary key and index to the metadata information, If (tm.getallIndexes ().isEmpty()) is valid, an exception will be thrown.
   
   


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