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
HostNameWorkerIdIdGenerator:根据机器名最后的数字编号获取workerId,如果线上机器命名有统一规范,建议使用此种方式
列如:机器的HostName为dangdang-db-sharding-dev-12,会截取最后的编号12作为workerId。
The text was updated successfully, but these errors were encountered:
已完成,用了PowerMock来mock静态方法。 https://github.com/xydonne/sharding-jdbc/tree/id-generator/192
Sorry, something went wrong.
@xydonne 如果保证测试覆盖率没有下降 就可以提交pull request。我将在pr中做code review
@hanahmily 新增内容,测试覆盖率100%,已提交PR。
b825236
No branches or pull requests
HostNameWorkerIdIdGenerator:根据机器名最后的数字编号获取workerId,如果线上机器命名有统一规范,建议使用此种方式
列如:机器的HostName为dangdang-db-sharding-dev-12,会截取最后的编号12作为workerId。
The text was updated successfully, but these errors were encountered: