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 "Marcel Reutegger (Jira)" <ji...@apache.org> on 2021/11/12 16:31:00 UTC
[jira] [Commented] (OAK-9620) Encounter "OakOak0001: Command failed
with error 10334(BSONObjectTooLarge)" during stress testing
[ https://issues.apache.org/jira/browse/OAK-9620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442835#comment-17442835 ]
Marcel Reutegger commented on OAK-9620:
---------------------------------------
I can think of two reasons why the MongoDB document becomes too large.
- The JCR primary type of node /channels has orderable child nodes and there are many direct children under this node. One example is nt:unstructured. A better alternative would be to use oak:Unstructured instead.
- The node /channels has many large properties. If this is the case, then large properties should be stored as blobs instead and the content structure changed to have less properties on a node.
> Encounter "OakOak0001: Command failed with error 10334(BSONObjectTooLarge)" during stress testing
> -------------------------------------------------------------------------------------------------
>
> Key: OAK-9620
> URL: https://issues.apache.org/jira/browse/OAK-9620
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Affects Versions: 1.24.0
> Reporter: lin
> Priority: Blocker
>
> We found we could not insert our channel data into MongoDB from 11/04. Error message is BSONObj size too large. Could you please help investigate this error?
> During stress testing, we encounter this error three times, we don't know how to solve it except restore Mongo DB.
> Error Message:
> OakOak0001: Command failed with error 10334(BSONObjectTooLarge): 'BSONObj size: 16852757 (0x1012715) is invalid. Size must be between 0 and 16793600(16MB) First element: _id: "1:/channels"'
> on server 414 bba4a - 4782 - 42 a5 - bc0d - 356 b1a072ddb - 0.4 b2136ddd30a46e9b7bdb2b2db7f8cd0.private.databases.appdomain.cloud: 31209.
> The full response is
> {
> "operationTime": {
> "$timestamp":
> { "t": 1636436044, "i": 24 }
> },
> "ok": 0.0,
> "errmsg": "BSONObj size: 16852757 (0x1012715) is invalid. Size must be between 0 and 16793600(16MB) First element: _id: \"1:/channels\"",
> "code": 10334,
> "codeName": "BSONObjectTooLarge",
> "$clusterTime": {
> "clusterTime": {
> "$timestamp":
> { "t": 1636436044, "i": 24 }
> }...
> }
> [1: /channels]
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)