dubbo整合zookeeper
如图,错误日志
2023-11-04 21:16:18.699 ERROR 7459 [main-EventThread] org.apache.curator.framework.imps.EnsembleTracker Caller+0 at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:214)
- Invalid config event received: {server.1=master:2888:3888:participant, version=0, server.3=node2:2888:3888:participant, server.2=node1:2888:3888:participant}
2023-11-04 21:16:18.699 INFO 7459 [main-EventThread] org.apache.curator.framework.imps.EnsembleTracker Caller+0 at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:201)
- New config event received: {server.1=master:2888:3888:participant, version=0, server.3=node2:2888:3888:participant, server.2=node1:2888:3888:participant}
2023-11-04 21:16:18.699 ERROR 7459 [main-EventThread] org.apache.curator.framework.imps.EnsembleTracker Caller+0 at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:214)
- Invalid config event received: {server.1=master:2888:3888:participant, version=0, server.3=node2:2888:3888:participant, server.2=node1:2888:3888:participant}
由日志得知
org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:214)
是 curator 组件的 EnsembleTracker 的 214 行日志错误
顺藤摸瓜
得知,是日志级别的问题,不是异常
搜索引擎搜一下,看是否有人遇到过类似的问题
https://github.com/apache/druid/issues/11971
https://issues.apache.org/jira/browse/CURATOR-526
https://github.com/apache/curator/pull/382
文章来源:https://www.toymoban.com/news/detail-785801.html
得知这个问题是日志级别设置错误了,在 curator 5.x 修复了这个问题,自己在试了 maven 仓库中从 5.0.0 开始的版本,从 5.2.0 中开始变成了 info。文章来源地址https://www.toymoban.com/news/detail-785801.html
到了这里,关于使用 curator 连接 zookeeper 集群 Invalid config event received的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!