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 jo...@apache.org on 2022/09/14 13:08:50 UTC

[jackrabbit-oak] 01/01: OAK-9938: Fix initialization of BlobStore in GenerateVersionInconsistencyReport

This is an automated email from the ASF dual-hosted git repository.

joscorbe pushed a commit to branch OAK-9938
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit d4141d567e7bc20a371aea8b660461ce5f196373
Author: José Cordero <co...@adobe.com>
AuthorDate: Wed Sep 14 15:08:28 2022 +0200

    OAK-9938: Fix initialization of BlobStore in GenerateVersionInconsistencyReport
---
 .../apache/jackrabbit/oak/run/GenerateVersionInconsistencyReport.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/oak-run/src/main/java/org/apache/jackrabbit/oak/run/GenerateVersionInconsistencyReport.java b/oak-run/src/main/java/org/apache/jackrabbit/oak/run/GenerateVersionInconsistencyReport.java
index 38b394506a..7d2af4e718 100644
--- a/oak-run/src/main/java/org/apache/jackrabbit/oak/run/GenerateVersionInconsistencyReport.java
+++ b/oak-run/src/main/java/org/apache/jackrabbit/oak/run/GenerateVersionInconsistencyReport.java
@@ -95,6 +95,8 @@ public class GenerateVersionInconsistencyReport {
         DocumentNodeStore dns = null;
         try {
             DocumentNodeStoreBuilder<?> builder = Utils.createDocumentMKBuilder(args, closer, h);
+            // Getting blobstore to trigger it to use MemoryBlobStore
+            builder.getBlobStore();
 
             dns = builder.setClusterInvisible(true).setReadOnlyMode().build();
             closer.register(Utils.asCloseable(dns));