You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/01/13 07:15:34 UTC

[jira] [Commented] (OAK-2393) Change default blob size to around 1 MB in OakDirectory

    [ https://issues.apache.org/jira/browse/OAK-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14274776#comment-14274776 ] 

Chetan Mehrotra commented on OAK-2393:
--------------------------------------

 Recently we are seeing issues on Mongo based deployment

{noformat}
"errmsg" : "exception: BSONObj size: 19927935
 (0x130137F) is invalid. Size must be between 0 and 16793600(16MB) First element: _id: \"4:/oak:index/lucene/:data/_no.fdt\"" , "code" : 10334 , "ok" : 0.0}
{noformat}

This happens because the default blobSize of 32KB causes a large array (at time of 60515 entries for a 2 GB file). In case of reindex the older revision of that array is kept in same Mongo document and this cases the Mongo document size to become greater than 16 MB. 

So having a large blobSize would lead to shorter array size also and help in above cases

> Change default blob size to around 1 MB in OakDirectory
> -------------------------------------------------------
>
>                 Key: OAK-2393
>                 URL: https://issues.apache.org/jira/browse/OAK-2393
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.2, 1.0.10
>
>
> With OAK-2201 the blobSize is made configurable but the default blobSize is still set to 32KB. This should now be increased to ~ 1 MB.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)