jerrypeng commented on issue #3679: Pulsar SQL queries fail with "failed: refCnt: 0" URL: https://github.com/apache/pulsar/issues/3679#issuecomment-467137767 The source exception is actually the following which causes the split to close and the exceptions in the close method ``` 2019-02-25T11:00:59.712-0800 ERROR SplitRunner-2-98 com.facebook.presto.execution.executor.TaskExecutor Error processing Split 20190225_190056_00000_ps5tb.1.0-1 PulsarSplit{splitId=1, connectorId='pulsar', schemaName='public/default', tableName='test_topic', splitSize=3319, schema='{ "name": "SimpleRecord", "type": "record", "fields": [ { "name": "field1", "type": [ "null", "string" ] } ] }', schemaType=JSON, startPositionEntryId=3320, endPositionEntryId=6639, startPositionLedgerId=46, endPositionLedgerId=46} (start = 3.31200428911106E8, wall = 440 ms, cpu = 0 ms, wait = 1 ms, calls = 1) org.apache.pulsar.shade.io.netty.util.IllegalReferenceCountException: refCnt: 0 at org.apache.pulsar.shade.io.netty.buffer.AbstractByteBuf.ensureAccessible(AbstractByteBuf.java:1450) at org.apache.pulsar.shade.io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1434) at org.apache.pulsar.shade.io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1420) at org.apache.pulsar.shade.io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:895) at org.apache.pulsar.sql.presto.JSONSchemaHandler.deserialize(JSONSchemaHandler.java:66) at org.apache.pulsar.sql.presto.PulsarRecordCursor.advanceNextPosition(PulsarRecordCursor.java:404) at com.facebook.presto.spi.RecordPageSource.getNextPage(RecordPageSource.java:93) at com.facebook.presto.operator.TableScanOperator.getOutput(TableScanOperator.java:242) at com.facebook.presto.operator.Driver.processInternal(Driver.java:373) at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:282) at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:672) at com.facebook.presto.operator.Driver.processFor(Driver.java:276) at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:973) at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:162) at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:477) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services