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

UUID-generator中关于“超前时间”的描述 #641

Open
jojoecfy opened this issue Sep 19, 2023 · 1 comment
Open

UUID-generator中关于“超前时间”的描述 #641

jojoecfy opened this issue Sep 19, 2023 · 1 comment

Comments

@jojoecfy
Copy link

https://seata.io/zh-cn/blog/seata-analysis-UUID-generator
原文的nextId()方法 没有waitIfNecessary(),个人理解 目前IdWorker中的的超前时间是相对于已生成UID使用的时间戳的“超前”,结束时间是到当前时间 一但时间追赶上,就会进入阻塞的逻辑,原文中的描述有一点误导性

@slievrly
Copy link
Member

slievrly commented Dec 4, 2023

@jojoecfy look forward a PR to fix it.

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

2 participants