You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Hussain Towaileb (Jira)" <ji...@apache.org> on 2020/04/17 11:01:00 UTC

[jira] [Created] (ASTERIXDB-2717) Querying external dataset fails when further data read is needed before decoding

Hussain Towaileb created ASTERIXDB-2717:
-------------------------------------------

             Summary: Querying external dataset fails when further data read is needed before decoding
                 Key: ASTERIXDB-2717
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2717
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: EXT - External data
    Affects Versions: 0.9.5
            Reporter: Hussain Towaileb
            Assignee: Hussain Towaileb
             Fix For: 0.9.5


In some scenarios, some characters are represented by multiple bytes, and the bytes are partially read (rest of the bytes is in the next read). In this case, the decoder will fail to decode, and will wait for the next read to have all the bytes together then try to decode it.

 

In the above scenario, the ByteBuffer limit is not being reset before reading again, which could lead to the position being greater than the limit and throwing an exception.

 

For example:
org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.IllegalArgumentException: newPosition > limit: (4096 > 1048)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)