# When I use es 5.4 I find datanode search.query\_current= -1,and the value is unusual

**URL:** <https://discuss.elastic.co/t/when-i-use-es-5-4-i-find-datanode-search-query-current-1-and-the-value-is-unusual/87333>\
**Category:** Elasticsearch\
**Created:** [May 27, 2017, 10:06am UTC](https://discuss.elastic.co/t/when-i-use-es-5-4-i-find-datanode-search-query-current-1-and-the-value-is-unusual/87333 "2017-05-27T10:06:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuguangmin](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@liuguangmin](https://discuss.elastic.co/u/liuguangmin)\
**Post date:** [May 27, 2017, 10:06am UTC](https://discuss.elastic.co/t/when-i-use-es-5-4-i-find-datanode-search-query-current-1-and-the-value-is-unusual/87333/1 "2017-05-27T10:06:17Z")

</div>

# when I use es 5.4 ,I run a long time, I find the datanode's search.query\_current= -1,because -1 is a negative ,so the ES cluster console printf： ========================the first part ============= Caused by: org.elasticsearch.transport.RemoteTransportException: [datagrand-data-1][10.45.139.177:9300][cluster :monitor/nodes/stats[n]] Caused by: java.lang.IllegalStateException: Negative longs unsupported, use writeLong or writeZLong for negativ e numbers [-1] at org.elasticsearch.common.io.stream.StreamOutput.writeVLong(StreamOutput.java:219) ~[elasticsearch-5. 4.0.jar:5.4.0] at org.elasticsearch.index.search.stats.SearchStats$Stats.writeTo(SearchStats.java:204) ~[elasticsearch -5.4.0.jar:5.4.0] at org.elasticsearch.index.search.stats.SearchStats.writeTo(SearchStats.java:353) ~[elasticsearch-5.4.0 .jar:5.4.0] at org.elasticsearch.common.io.stream.StreamOutput.writeOptionalStreamable(StreamOutput.java:723) ~[ela sticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.action.admin.indices.stats.CommonStats.writeTo(CommonStats.java:255) ~[elasticsear ch-5.4.0.jar:5.4.0] at org.elasticsearch.indices.NodeIndicesStats.writeTo(NodeIndicesStats.java:175) ~[elasticsearch-5.4.0. jar:5.4.0] at org.elasticsearch.action.admin.cluster.node.stats.NodeStats.writeTo(NodeStats.java:235) ~[elasticsea rch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.TcpTransport.buildMessage(TcpTransport.java:1210) ~[elasticsearch-5.4.0. jar:5.4.0] at org.elasticsearch.transport.TcpTransport.sendResponse(TcpTransport.java:1154) ~[elasticsearch-5.4.0. jar:5.4.0] at org.elasticsearch.transport.TcpTransport.sendResponse(TcpTransport.java:1132) ~[elasticsearch-5.4.0. jar:5.4.0] at org.elasticsearch.transport.TcpTransportChannel.sendResponse(TcpTransportChannel.java:67) ~[elastics earch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.TcpTransportChannel.sendResponse(TcpTransportChannel.java:61) ~[elastics earch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.DelegatingTransportChannel.sendResponse(DelegatingTransportChannel.java: 60) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.RequestHandlerRegistry$TransportChannelWrapper.sendResponse(RequestHandl erRegistry.java:111) ~[elasticsearch-5.4.0.jar:5.4.0] =====================the second part========== [2017-05-27T14:42:43,808][WARN][o.e.a.a.c.n.s.TransportNodesStatsAction] [datagrand-data-4] not accumulating e xceptions, excluding exception from response org.elasticsearch.action.FailedNodeException: Failed node [el9GeOaEREmcp\_s33BX1YA] at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.onFailure(TransportNodesActi on.java:246) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.access$200(TransportNodesAct ion.java:160) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction$1.handleException(TransportN odesAction.java:218) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(Transport Service.java:1041) ~[elasticsearch-5.4.0.jar:5.4.0] at org.elasticsearch.transport.TcpTransport.lambda$handleException$17(TcpTransport.java:1442) ~[elastic search-5.4.0.jar:5.4.0] at org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:110) [elasticsearch- 5.4.0.jar:5.4.0] at org.elasticsearch.transport.TcpTransport.handleException(TcpTransport.java:1440) [elasticsearch-5.4. 0.jar:5.4.0] at org.elasticsearch.transport.TcpTransport.handlerResponseError(TcpTransport.java:1432) [elasticsearch -5.4.0.jar:5.4.0] at org.elasticsearch.transport.TcpTransport.messageReceived(TcpTransport.java:1376) [elasticsearch-5.4. 0.jar:5.4.0] at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandl er.java:74) [transport-netty4-5.4.0.jar:5.4.0] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 362) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 348) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:34 0) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [netty-co dec-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280) [netty-co dec-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396) [netty-codec-4 .1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) [netty-codec- 4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 362) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 348) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:34 0) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [n etty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 362) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java: 348) [netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [netty-tran sport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)

# because the ES method writeVLong() is below: public void writeVLong(long i) throws IOException { if (i \< 0) { throw new IllegalStateException("Negative longs unsupported, use writeLong or writeZLong for negative numbers [" + i + "]"); } writeVLongNoCheck(i); }

I guess this is may be the ES's budge,or I unright use the ES?  
so I want to know how to solve the problem

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 27, 2017, 5:44pm UTC](https://discuss.elastic.co/t/when-i-use-es-5-4-i-find-datanode-search-query-current-1-and-the-value-is-unusual/87333/2 "2017-05-27T17:44:40Z")

</div>

This will be fixed by [https://github.com/elastic/elasticsearch/pull/24922](https://github.com/elastic/elasticsearch/pull/24922).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2017, 5:44pm UTC](https://discuss.elastic.co/t/when-i-use-es-5-4-i-find-datanode-search-query-current-1-and-the-value-is-unusual/87333/3 "2017-06-24T17:44:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
