Wail Alkowaileet created ASTERIXDB-2491:
-------------------------------------------

             Summary: Recovery fail for large tuples (short overflow)
                 Key: ASTERIXDB-2491
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2491
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: HYR - Hyracks, TX - Transactions
            Reporter: Wail Alkowaileet


I've been running some tests with pretty large objects (~100KB). But it seems 
the field end offsets in the log buffer are of type short [1, 2]. For large 
fields (> 32KB), the field end offset is going to be a negative value due to 
overflow. When recovery kicks in, I get an exception that "The length must be a 
non-negative value".

[1] 
[SimpleTupleWriter|https://github.com/apache/asterixdb/blob/6b31f73565a3b16e0dd1fce9ea010e640c53ca79/hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/tuples/SimpleTupleWriter.java#L106]
[2] 
[SimpleTupleReference|https://github.com/apache/asterixdb/blob/6b31f73565a3b16e0dd1fce9ea010e640c53ca79/hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/tuples/SimpleTupleReference.java#L86]




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to