Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

幂等和清除问题讨论 #332

Open
zyxxoo opened this issue May 5, 2022 · 0 comments
Open

幂等和清除问题讨论 #332

zyxxoo opened this issue May 5, 2022 · 0 comments

Comments

@zyxxoo
Copy link

zyxxoo commented May 5, 2022

Question

  1. 关于幂等看了 历史 issure, 结合tcc代码,目前框架中应该是没有做幂等处理,然后定时恢复任务有用 lock 函数,但看了 redis 的实现感觉无法做到幂等,所以想跟大佬们确认下幂等的问题应该是要业务上自己处理对吧?
  2. 假如 try 函数执行成功了,但是更新 trying 状态的时候down了,这个时候貌似走不到恢复(pre_try 会跳过),定时任务会清理 trans, 不会走 cancel,但是这个场景应该走 cancel, 请问大佬们这个极端场景问题是否存在?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant