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

解决k8s集群下,进程号pid为1导致生成重复ID的可能性大大增加 #6247

Closed
wants to merge 1 commit into from

Conversation

xxx-tea
Copy link

@xxx-tea xxx-tea commented Jun 10, 2024

该Pull Request关联的Issue

issue#6177

修改描述

解决k8s集群下,进程号pid为1导致生成重复ID的可能性大大增加

测试用例

修复效果的截屏

@qmdx
Copy link
Member

qmdx commented Jun 20, 2024

这个方案治标不治本,建议使用 com.baomidou.mybatisplus.core.incrementer.ImadcnIdentifierGenerator 类去生成 ID 用 https://github.com/imadcn/idworker 的实现

@qmdx qmdx closed this Jun 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants