-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
nacos中的MD5和服务收到的MD5不一致,导致日志不断打印 #2722
Comments
我也遇到这个问题了,nacos集群使用mysql做持久化配置,config_info表中的md5字段有时候只有31位,与服务中计算的md5比较,首位缺少个0;我连续修改几次dataId对应的配置文件,mysql中的md5又恢复正常了。请问下什么原因呢? |
5 tasks
注意:使用以下方式获取到的MD5也会出现首位少0的情况 MessageDigest md = MessageDigest.getInstance("MD5");
String md5Text = new BigInteger(1, md.digest(text.getBytes())).toString(16); |
我也遇到了,debug找到原因了,nacos的服务端和客户端使用的不同md5方法对数据做摘要计算;
|
我也遇到这个问题了,一直没提 哈哈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Type: bug report
Describe what happened (or what feature you want)
nacos中的MD5和服务收到的MD5不一致,导致日志不断打印
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
发布之后,可以看到对应的服务中不断打印出日志:
日志打印的MD5为:07e0cc99f8dde57e7f013d5d544d88a0
查看nacos中的配置的MD5:7e0cc99f8dde57e7f013d5d544d88a0
对比两个MD5,发现nacos中的MD5比服务收到的MD5前面少了个0
尝试将配置文件中相关值修改为其他值,不会不断打印日志
The text was updated successfully, but these errors were encountered: