We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
单例的DbSegmentIdServiceImpl的retry全局变量,最好搞成常量,大写。
IdController 中 idGeneratorFactoryServer.getIdGenerator(bizType) 每次返回的都是新的CachedIdGenerator的实例,而你在这个实例里搞了(实例)锁,起不到对数据库(version冲突)减压的效果。应该锁 “bizType”
The text was updated successfully, but these errors were encountered:
retry命名确实不规范 每个bizType实际内存只有一个CachedIdGenerator实例,有个cache,如果cache中有,不会create了 @zhaoche27
Sorry, something went wrong.
这个地方是多此一举了
No branches or pull requests
单例的DbSegmentIdServiceImpl的retry全局变量,最好搞成常量,大写。
IdController 中 idGeneratorFactoryServer.getIdGenerator(bizType) 每次返回的都是新的CachedIdGenerator的实例,而你在这个实例里搞了(实例)锁,起不到对数据库(version冲突)减压的效果。应该锁 “bizType”
The text was updated successfully, but these errors were encountered: