You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2026/02/23 10:12:24 UTC
(jackrabbit-oak) branch trunk updated: OAK-12103: MongoDocumentStore: improve diagnostics for too large docs in reuest payloads (#2757)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new d7905a4eb3 OAK-12103: MongoDocumentStore: improve diagnostics for too large docs in reuest payloads (#2757)
d7905a4eb3 is described below
commit d7905a4eb30da92fce9b3a6ca06b7db7004606ba
Author: Julian Reschke <re...@apache.org>
AuthorDate: Mon Feb 23 11:12:19 2026 +0100
OAK-12103: MongoDocumentStore: improve diagnostics for too large docs in reuest payloads (#2757)
---
.../oak/plugins/document/mongo/MongoDocumentStore.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
index fc6c0a8341..3b5c7b2c1b 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
@@ -1161,11 +1161,11 @@ public class MongoDocumentStore implements DocumentStore {
return oldDoc;
} catch (MongoWriteException e) {
WriteError werr = e.getError();
- LOG.error("Failed to update the document with Id={} with MongoWriteException message = '{}'. Document statistics: {}.",
+ LOG.error("Failed to update the document with id={} with MongoWriteException message = '{}'. Content statistics: {}.",
updateOp.getId(), werr.getMessage(), produceDiagnostics(collection, updateOp.getId()), e);
throw handleException(e, collection, updateOp.getId());
} catch (MongoCommandException e) {
- LOG.error("Failed to update the document with Id={} with MongoCommandException message ='{}'. ",
+ LOG.error("Failed to update the document with id={} with MongoCommandException message = '{}'.",
updateOp.getId(), e.getMessage());
throw handleException(e, collection, updateOp.getId());
} catch (Exception e) {
@@ -1742,8 +1742,9 @@ public class MongoDocumentStore implements DocumentStore {
for (T doc : docs) {
LOG.error("Failed to create one of the documents " +
"with BsonMaximumSizeExceededException message = '{}'. " +
- "The document id={} has estimated size={} in VM.",
- e.getMessage(), doc.getId(), doc.getMemory());
+ "The document id={} has estimated size={} in VM, Content statistics: {}.",
+ e.getMessage(), doc.getId(), doc.getMemory(),
+ Utils.mapEntryDiagnostics(doc.entrySet()));
}
return false;
} catch (MongoException e) {