This is an automated email from the ASF dual-hosted git repository.
nfsantos 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 4638166292 OAK-10901 - Bypass the DocumentNodeState cache when
resolving paths downloaded from Mongo. (#1541)
4638166292 is described below
commit 463816629250d6d558b224a3e3c5e5f80e2edb5d
Author: Nuno Santos <[email protected]>
AuthorDate: Tue Jun 25 14:10:25 2024 +0200
OAK-10901 - Bypass the DocumentNodeState cache when resolving paths
downloaded from Mongo. (#1541)
---
.../indexer/document/flatfile/pipelined/PipelinedTransformTask.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedTransformTask.java
b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedTransformTask.java
index 07d5d15395..11ac883fae 100644
---
a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedTransformTask.java
+++
b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedTransformTask.java
@@ -24,6 +24,7 @@ import org.apache.jackrabbit.oak.commons.IOUtils;
import
org.apache.jackrabbit.oak.index.indexer.document.flatfile.NodeStateEntryWriter;
import org.apache.jackrabbit.oak.plugins.document.DocumentNodeState;
import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore;
+import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreHelper;
import org.apache.jackrabbit.oak.plugins.document.NodeDocument;
import org.apache.jackrabbit.oak.plugins.document.Path;
import org.apache.jackrabbit.oak.plugins.document.RevisionVector;
@@ -239,7 +240,7 @@ class PipelinedTransformTask implements
Callable<PipelinedTransformTask.Result>
private void extractNodeStateEntries(NodeDocument doc,
ArrayList<DocumentNodeState> nodeStateEntries) {
Path path = doc.getPath();
- DocumentNodeState nodeState = documentNodeStore.getNode(path,
rootRevision);
+ DocumentNodeState nodeState =
DocumentNodeStoreHelper.readNode(documentNodeStore, path, rootRevision);
//At DocumentNodeState api level the nodeState can be null
if (nodeState == null || !nodeState.exists()) {
return;