simlaudato / asterixdb

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

Long result instances from Hyracks will fail to be read by Asterix #796

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The code in Asterix which reads the serialized results from Hyracks 
(ResultUtils.displayResults(), after my change is merged) uses a ByteBuffer of 
size ResultReader.FRAME_SIZE. I presume that Hyracks will not send a block of 
data larger than FRAME_SIZE, so this buffer will not overflow. However, Asterix 
assumes that each buffer of data that it reads is a single instance in the 
result. If a single result instance is larger than FRAME_SIZE, I further 
presume Hyracks will split it over several buffers, but Asterix won't handle 
that correctly.

Original issue reported on code.google.com by c...@lambda.nu on 15 Aug 2014 at 7:46