wxrqforever commented on issue #7090: URL: https://github.com/apache/incubator-seata/issues/7090#issuecomment-2567604765
> 你这个日志明显不在同一秒里进行,是你的client提交失败了,导致后续接着重试而已 我感觉我没太理解你的意思,从我这观察到的现象感觉不是这样的。这里的重试是由seata-server定时任务发起的,不是client的重试,上面分别是两个seata-server实例的日志。原因如下: 1.我是重启了业务应用容器后,发现业务应用一直不断收到commit方法的调用 2.原先的调用频率是一秒一次,当我调整server.recovery.committingRetryPeriod=60000配置后就commit的触发变成一分钟一次,我也找到了相关定时任务代码。 我上面想表达的是,由于serverA和serverB不是同时启动的,比如ServerB晚于ServerA数秒,然后ServerA在这个期间就跑完了定时任务,并释放了分布式锁,那么到ServerB执行的时候不是照样可以获取锁。我没明白你说的“select for update 加对数据进行查询过期时间,过期时间为60秒”,代码里的这个配置默认不是1秒吗?我目前的配置也是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. To unsubscribe, e-mail: notifications-unsubscr...@seata.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