asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hussain Towaileb (Jira)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-2717) Querying external dataset fails when further data read is needed before decoding
Date Fri, 17 Apr 2020 11:01:00 GMT
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)

Mime
View raw message