Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8473

oak-run recovery fails with custom blob store

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • run
    • None

    Description

      The oak-run recovery command fails with an exception when the repository was created
      with a custom blob store. E.g. when blobs are stored on the file system instead of in the
      database. The command complains about the missing blobs collection:

      Exception in thread "main" java.lang.RuntimeException: MongoBlobStore instantiated read-only, but collection blobs not present
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlobStore.initBlobCollection(MongoBlobStore.java:210)
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlobStore.<init>(MongoBlobStore.java:113)
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentNodeStoreBuilderBase.lambda$setMongoDB$2(MongoDocumentNodeStoreBuilderBase.java:230)
      	at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:125)
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.getBlobStore(DocumentNodeStoreBuilder.java:305)
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.<init>(DocumentNodeStore.java:522)
      	at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder.build(DocumentNodeStoreBuilder.java:162)
      	at org.apache.jackrabbit.oak.run.RecoveryCommand.execute(RecoveryCommand.java:63)
      	at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
      

      The check and the exception were introduced with OAK-8252. Those changes are not yet in
      a released Oak version.

      Attachments

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: