jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1563) Data Store: UTFDataFormatException when using large minRecordLength
Date Wed, 30 Apr 2008 09:18:55 GMT

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

Thomas Mueller commented on JCR-1563:
-------------------------------------

Because of the prefix, and because the id is string based (DataIdentifier, BLOB id).

Large values that are stored in the data store are persisted as: 
dataStore:<sha-1>

Small values (that are kept in memory) are persisted as: 
0x<hex encoded value>

Values that are stored in a FileSystemResource (resource-based BLOB store) are persisted as:

fsResource:<blob id>

Values that are stored in a temporary file are persisted as: 
file:<file name> (actually those should never be written)



> 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.


Mime
View raw message