为什么Riak将“inavailable channel closed”消息记录到ERROR

时间:2015-05-12 18:34:58

标签: java riak

我不是Riak专家,但似乎inavailable channel closed消息应该是INFO级别,而不是ERROR级别日志消息。当我们的服务器启动以获取用户数据时,我们正在打开一些Riak连接,然后当超时显示inavailable channel closed消息时,它们会超时(这应该没问题,对吧?)。

我们使用Riak错了吗?有真正的错误吗?或者这只是一个INFO级别,因为它是正常Riak生命周期的一部分?

http://grepcode.com/file/repo1.maven.org/maven2/com.basho.riak/riak-client/2.0.0/com/basho/riak/client/core/RiakNode.java

13:13:51.533 [nioEventLoopGroup-2-1] DEBUG s.r.s.i.n.u.i.JavassistTypeParameterMatcherGenerator - Generated: scifinder.riak.shaded.io.netty.util.internal.__matchers__.com.basho.riak.client.core.RiakMessageMatcher
13:13:51.541 [nioEventLoopGroup-2-1] DEBUG s.r.s.i.n.u.i.JavassistTypeParameterMatcherGenerator - Generated: scifinder.riak.shaded.io.netty.util.internal.__matchers__.com.basho.riak.client.core.FutureOperationMatcher
13:13:51.552 [main] INFO  com.basho.riak.client.core.RiakNode - RiakNode started; riak.address.org:8087
13:13:51.553 [main] INFO  c.basho.riak.client.core.RiakCluster - RiakCluster is starting.
13:13:51.865 [main] INFO  com.basho.riak.client.core.RiakNode - RiakNode started; riak.address.org:8087
13:13:51.865 [main] INFO  c.basho.riak.client.core.RiakCluster - RiakCluster is starting.
13:13:52.174 [main] INFO  com.basho.riak.client.core.RiakNode - RiakNode started; riak.address.org:8087
13:13:52.174 [main] INFO  c.basho.riak.client.core.RiakCluster - RiakCluster is starting.
13:13:52.206 [main] DEBUG com.basho.riak.client.core.RiakNode - Operation being executed on RiakNode riak.address.org:8087
13:13:52.220 [nioEventLoopGroup-4-1] DEBUG s.r.s.i.n.util.ResourceLeakDetector - -Dscifinder.riak.shaded.io.netty.leakDetectionLevel: simple
13:13:52.233 [nioEventLoopGroup-4-1] DEBUG com.basho.riak.client.core.RiakNode - Operation onSuccess() channel: id:-486690393 riak.address.org:8087
13:13:52.234 [nioEventLoopGroup-4-1] DEBUG c.basho.riak.client.core.RiakCluster - operation complete; remaining retries: 2
13:13:52.235 [nioEventLoopGroup-4-1] DEBUG com.basho.riak.client.core.RiakNode - Channel id:-486690393 returned to pool
13:13:52.235 [nioEventLoopGroup-4-1] DEBUG com.basho.riak.client.core.RiakNode - Released pool permit

错误记录

14:13:31.708 [nioEventLoopGroup-2-1] ERROR com.basho.riak.client.core.RiakNode - inAvailable channel closed; id:601172895 riak.address.org:8087
14:13:32.036 [nioEventLoopGroup-3-1] ERROR com.basho.riak.client.core.RiakNode - inAvailable channel closed; id:-319701844 riak.address.org:8087
14:13:32.410 [nioEventLoopGroup-4-1] ERROR com.basho.riak.client.core.RiakNode - inAvailable channel closed; id:-486690393 riak.address.org:8087

1 个答案:

答案 0 :(得分:1)

看起来开发人员注意到同样的事情,因为this bug是在去年6月提交的,并且该消息在一个月后this PR内被降低到INFO级别。

如果您仍然将其视为错误,请将您的java-riak-client更新为v2.0.7或更高版本。