wxrqforever commented on issue #7090: URL: https://github.com/apache/incubator-seata/issues/7090#issuecomment-2568805084
> 你的理解是不是以周期性为目的,比如60秒一次定时重试,那么60秒内只应该有一次?因为如果多个实例部署,每一个实例的60秒的时机并不相同,导致60秒内其实有多次,而seata的分布式锁只是为了防止并发,而忽略了周期内次数的要求。 > Your understanding seems to be focused on periodicity, such as retrying every 60 seconds. In this case, there should only be one attempt within the 60-second window. However, if multiple instances are deployed, the timing of each instance's 60-second window is not synchronized, leading to multiple retries within the same 60-second period. The Seata distributed lock is designed to prevent concurrency, but it overlooks the requirement of limiting the number of attempts within the same period. 是的,我一开始看现象,发现调用了两次,直观感觉以为分布式锁失效了或者锁的时间太短了,我还调长了server.distributedLockExpireTime的配置,发现依旧是一样的,看了代码才确定定时任务执行完后锁就释放了,然后不同实例的启动时机并不相同,所以导致了这个现象。 -- 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