You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/01/07 01:20:14 UTC

[GitHub] [servicecomb-pack] siaron commented on issue #629: duplicate key value violates unique constraint "tcc_global_tx_event_index"

siaron commented on issue #629: duplicate key value violates unique constraint "tcc_global_tx_event_index"
URL: https://github.com/apache/servicecomb-pack/issues/629#issuecomment-571389312
 
 
   一个Alpha实例, eureka 注册中心. 
   ```
   new Date(System.currentTimeMillis() - SECONDS.toMillis(globalTxTimeoutSeconds)
   ```
   如果有tcc任务被扫描到, 十分钟后不就超时了吗.  后面一直查询出来再插入就有问题.
   ```
   tccTxEventService.clearCompletedGlobalTx(1);
   ```
   要不就是清理的有问题, 没有把成功或者失败的已完成的任务清理掉.
   
   不知道理解的对不对.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services