zhanhw opened a new issue, #6535:
URL: https://github.com/apache/incubator-seata/issues/6535

   我们业务中的一张主表是联合主键的( id,fk_cust_id,billing_date) ,在业务报错全局事务回滚的时候,我们发现undo log中的 
镜像数据里面的filed里面 联合主键中的某一个字段 fk_cust_id 出现了两次,这个会导致 我下面截图中的这部分代码 
通过pkColumnValueList获取Field 会出现数组下标越界 Index: 1, Size: 1,因为前面的rowSize 
取的是第一个pkNameList的值,第一个pkName就是 fk_cust_id 它的size=2,而其它的size=1 
所以会出现数组下标越界,我想问下,为什么这种情况写入的undo log中会出现两个fk_cust_id字段 都是主键类型?
   
![undoLog](https://github.com/apache/incubator-seata/assets/37291088/900f25af-b4ef-4264-8678-899e87e49c5e)
   
![源码](https://github.com/apache/incubator-seata/assets/37291088/f241e6f3-fd7f-4736-8710-1598080c4025)
   
![联合主键](https://github.com/apache/incubator-seata/assets/37291088/f5871e12-7912-41db-9199-8e9fbfe75b84)
   
![lock详情](https://github.com/apache/incubator-seata/assets/37291088/0a043ef1-0f6d-45fa-a469-0e0dd6eda1eb)
   
![数组下表越界异常](https://github.com/apache/incubator-seata/assets/37291088/59a74c5b-870e-44d5-9a4e-714cb4dc1510)
   
   
   


-- 
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-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to