[ 
https://issues.apache.org/jira/browse/JCR-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593733#action_12593733
 ] 

Jukka Zitting commented on JCR-1563:
------------------------------------

Since we already have a procedure for detecting the type of the data and 
parsing it accordingly, couldn't we push that down so that it would operate on 
byte streams instead of strings? This way we wouldn't need to waste twice the 
amount of bytes when persisting small binary values. Also, this issue with 
witeUTF would simply not exist.

> Data Store: UTFDataFormatException when using large minRecordLength
> -------------------------------------------------------------------
>
>                 Key: JCR-1563
>                 URL: https://issues.apache.org/jira/browse/JCR-1563
>             Project: Jackrabbit
>          Issue Type: Bug
>            Reporter: Thomas Mueller
>            Priority: Minor
>
> If using a value larger than 33000 for minRecordLength, and then trying to 
> store a value with 33000 bytes, the following exception is thrown: 
> UTFDataFormatException. The reason is that values are serialized using 
> DataOutputStream.writeUTF. There is size limitation of 65 K when using this 
> method. Small entries are hex encoded, and there is a prefix, so the 
> limitation for minRecordLength should be 32000.
> This is a problem for both FileDataStore and DbDataStore.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to