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

得知这个问题是日志级别设置错误了,在 curator 5.x 修复了这个问题,自己在试了 maven 仓库中从 5.0.0 开始的版本,从 5.2.0 中开始变成了 info。

Logo

一起探索未来云端世界的核心,云原生技术专区带您领略创新、高效和可扩展的云计算解决方案,引领您在数字化时代的成功之路。

更多推荐