question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query fails with EOFException after upgrading to 1.1.2

See original GitHub issue

CrateDB version: 1.1.2

JVM version: openjdk version “1.8.0_121” OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13) OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

OS version / environment description: Ubuntu 16.04.2

Problem description: After updating our cluster to 1.1.2 from 1.0.5, some of our queries are failing with an exception: SQLActionException[RuntimeException: java.io.EOFException]

Query: select "A"."colA1", "A"."colA2", "A"."colA3", "A"."start_time", "A"."end_time" "B"."colB1" as "col_b_1", "C"."colC1" as "col_c_1", "D"."colD1" as "col_d_1" from "A" left join "B" on "A"."colA1" = "B"."colB2" left join "C" on "B"."colB2" = "C"."colC2" left join "D" on "A"."colA2" = "D"."colD2" where "A"."deleted_at" is null and "colA2" in ('6da26df6-20dc-496e-96f9-8a37a03c8f4a', '4f9afe6e-eec7-4243-bdae-e11795f17f02', '36b0fae3-194b-432b-8d3c-1164b96ee0cd', '0a5f8743-b422-4e87-9764-8c2157157293', '72826b92-5e1e-4cc5-81c1-ce22c2f0d05b', '237d9983-77c1-4469-b9bf-b1a6cbb953e3', '73e7ded6-9475-4fd0-ad0c-ebea451a2309', '41e5df08-7ee3-47a2-8747-ca1df1bc1786') and ("start_time" >= 1491072240000 and "end_time" <= 1493232245056)

Stacktrace: SQLActionException: INTERNAL_SERVER_ERROR 5000 RuntimeException: java.io.EOFException at com.google.common.base.Throwables.propagate(Throwables.java:160) at io.crate.executor.transport.StreamBucket$RowIterator.next(StreamBucket.java:147) at io.crate.executor.transport.StreamBucket$RowIterator.next(StreamBucket.java:129) at com.google.common.collect.Iterators$5.next(Iterators.java:558) at com.google.common.collect.ForwardingIterator.next(ForwardingIterator.java:48) at io.crate.operation.merge.BatchPagingIterator.moveNext(BatchPagingIterator.java:98) at io.crate.data.join.LeftJoinBatchIterator.moveLeftSide(LeftJoinBatchIterator.java:75) at io.crate.data.join.LeftJoinBatchIterator.moveNext(LeftJoinBatchIterator.java:62) at io.crate.data.ForwardingBatchIterator.moveNext(ForwardingBatchIterator.java:50) at io.crate.operation.aggregation.RowTransformingBatchIterator.moveNext(RowTransformingBatchIterator.java:76) at io.crate.data.join.LeftJoinBatchIterator.moveLeftSide(LeftJoinBatchIterator.java:75) at io.crate.data.join.LeftJoinBatchIterator.moveNext(LeftJoinBatchIterator.java:62) at io.crate.data.ForwardingBatchIterator.moveNext(ForwardingBatchIterator.java:50) at io.crate.operation.aggregation.RowTransformingBatchIterator.moveNext(RowTransformingBatchIterator.java:76) at io.crate.data.join.LeftJoinBatchIterator.moveLeftSide(LeftJoinBatchIterator.java:75) at io.crate.data.join.LeftJoinBatchIterator.moveNext(LeftJoinBatchIterator.java:62) at io.crate.data.ForwardingBatchIterator.moveNext(ForwardingBatchIterator.java:50) at io.crate.data.CloseAssertingBatchIterator.moveNext(CloseAssertingBatchIterator.java:55) at io.crate.data.LimitingBatchIterator.moveNext(LimitingBatchIterator.java:54) at io.crate.operation.aggregation.RowTransformingBatchIterator.moveNext(RowTransformingBatchIterator.java:76) at io.crate.data.AsyncOperationBatchIterator.tryProcessBatchFromLoadedSource(AsyncOperationBatchIterator.java:156) at io.crate.data.AsyncOperationBatchIterator.uncheckedLoadNextBatch(AsyncOperationBatchIterator.java:134) at io.crate.data.AsyncOperationBatchIterator.loadNextBatch(AsyncOperationBatchIterator.java:130) at io.crate.action.sql.BatchConsumerToResultReceiver.consumeIt(BatchConsumerToResultReceiver.java:80) at io.crate.action.sql.BatchConsumerToResultReceiver.accept(BatchConsumerToResultReceiver.java:49) at io.crate.executor.transport.executionphases.InterceptingBatchConsumer.tryForwardResult(InterceptingBatchConsumer.java:81) at io.crate.executor.transport.executionphases.InterceptingBatchConsumer.accept(InterceptingBatchConsumer.java:68) at io.crate.operation.projectors.ProjectingBatchConsumer.accept(ProjectingBatchConsumer.java:104) at io.crate.operation.join.NestedLoopOperation.lambda$new$0(NestedLoopOperation.java:55) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) at io.crate.operation.join.NestedLoopOperation$1.accept(NestedLoopOperation.java:106) at io.crate.operation.projectors.ProjectingBatchConsumer.accept(ProjectingBatchConsumer.java:104) at io.crate.operation.join.NestedLoopOperation.lambda$new$0(NestedLoopOperation.java:55) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) at io.crate.operation.join.NestedLoopOperation$1.accept(NestedLoopOperation.java:106) at io.crate.operation.projectors.ProjectingBatchConsumer.accept(ProjectingBatchConsumer.java:104) at io.crate.operation.join.NestedLoopOperation.lambda$new$0(NestedLoopOperation.java:55) at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) at io.crate.operation.join.NestedLoopOperation$1.accept(NestedLoopOperation.java:106) at io.crate.jobs.PageDownstreamContext.triggerConsumer(PageDownstreamContext.java:148) at io.crate.jobs.PageDownstreamContext.mergeAndTriggerConsumer(PageDownstreamContext.java:162) at io.crate.jobs.PageDownstreamContext.setBucket(PageDownstreamContext.java:133) at io.crate.executor.transport.distributed.TransportDistributedResultAction.nodeOperation(TransportDistributedResultAction.java:125) at io.crate.executor.transport.distributed.TransportDistributedResultAction.nodeOperation(TransportDistributedResultAction.java:91) at io.crate.executor.transport.distributed.TransportDistributedResultAction.nodeOperation(TransportDistributedResultAction.java:46) at io.crate.executor.transport.NodeActionRequestHandler.messageReceived(NodeActionRequestHandler.java:43) at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:293) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Steps to reproduce:

Use case:

Feature description:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mfusseneggercommented, May 2, 2017

This is great, thanks a lot. I’ve found the issue and I’m working on a fix - should make it into the next hotfix release (1.1.3)

0reactions
mfusseneggercommented, May 2, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Retrofit2 error java.io.EOFException: End of input at line 1 ...
The issue was with the Content-Length header value. Anything more than the specified no of bytes was causing the problem. After removing the...
Read more >
How to Fix the EOFException in Java.io - Rollbar
EOFException is a checked exception in Java that occurs when an end of file or end of stream is reached unexpectedly during input....
Read more >
losing connection with java.io.IOException: Unexpected ...
After updating the Docker plugin to version 1.1.5 our agents fail every time after a few minutes with the console log: java.io.EOFException ......
Read more >
"failed to merge java.io.EOFException: read past EOF ...
the logs, after an unrelated error due to a misformed query in the kibana ... I'm going to upgrade the ES and logstash...
Read more >
[IPT_HttpSendError] HTTP encounters send error :. Premature ...
Your server is able to connect to your TP's server but while delivering file to TP server unexpected end of file is occuring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found