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

【bug】id生成策略问题 #41

Open
0000005 opened this issue Dec 27, 2018 · 8 comments
Open

【bug】id生成策略问题 #41

0000005 opened this issue Dec 27, 2018 · 8 comments

Comments

@0000005
Copy link
Contributor

0000005 commented Dec 27, 2018

idWorkerUtils中,使用此方法生成的id有重复的风险。
image
目前我在显示环境发现多次不同时间的事务,加到同一个事务组了。
image

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

此问题貌似还导致我的新事务组中的 预料之外的回滚(参与者没有异常,是接到txTransaction通知回滚,但是整个事务是成功的)。但是不确定,还没复现成功,还没找到原因。

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

目前我自己的代码使用了IdWorkerUtil中的nextId来生成id,且有部分改动,我就不提pr了。

@yu199195
Copy link
Member

master已经更新了

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

预料之外的回滚,也是这个原因导致的吗
image

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

可以告诉我是哪次提交吗?

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

你提交没日志,还是要规范下啦

@yu199195
Copy link
Member

还没提交,是使用雪花算法弄的

@0000005
Copy link
Contributor Author

0000005 commented Dec 27, 2018

ok

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