shamim8888 / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

retrieving stale query handles can crash the NC #817

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduction:
==============
Run a query in asynchronous mode, you get a handle back. Retrieve the result 
with the handle, and then retrieve it again. You will get an empty result the 
second time but a consequence is that the NC will crash. 

Original issue reported on code.google.com by ker...@gmail.com on 30 Oct 2014 at 10:18

GoogleCodeExporter commented 9 years ago
I am adding the stack logs, on the NC's end: 
SEVERE: Uncaught Exception from thread Thread-12 message: 
edu.uci.ics.hyracks.api.exceptions.HyracksDataException: 
java.nio.channels.ClosedChannelException
java.lang.RuntimeException: 
edu.uci.ics.hyracks.api.exceptions.HyracksDataException: 
java.nio.channels.ClosedChannelException
    at edu.uci.ics.hyracks.control.nc.dataset.DatasetPartitionReader$1.run(DatasetPartitionReader.java:81)

And on the CC's end:
INFO: Executing: GetResultPartitionLocations: JobId@JID:1 ResultSetId@RSID:0 
Known@null
edu.uci.ics.asterix.metadata.MetadataException: 
edu.uci.ics.hyracks.api.exceptions.HyracksDataException: Failed to open index 
with resource ID 6 since it does not exist.
    at edu.uci.ics.asterix.metadata.MetadataNode.getFunction(MetadataNode.java:898)

Original comment by ker...@gmail.com on 30 Oct 2014 at 10:43