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

DataStoreTextWriter should not write on close when running in readOnly mode

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.16, 1.4
    • Component/s: lucene
    • Labels:
      None

      Description

      DataStoreTextWriter upon close currently attempts to write the data. This should be avoided in case of running in read only mode as the directory mounted might not be writable

      11.02.2016 09:38:19.322 *ERROR* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreTextProviderService)] org.apache.jackrabbit.oak-core [org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreTextProviderService(98)] The deactivate method has thrown an exception (java.io.FileNotFoundException: /mnt/preExtraction/store/blobs_empty.txt (Permission denied))
      java.io.FileNotFoundException: /mnt/preExtraction/store/blobs_empty.txt (Permission denied)
      	at java.io.FileOutputStream.open(Native Method)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
      	at com.google.common.io.Files.newWriter(Files.java:104)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreTextWriter.writeToFile(DataStoreTextWriter.java:232)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreTextWriter.close(DataStoreTextWriter.java:150)
      	at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreTextProviderService.deactivate(DataStoreTextProviderService.java:69)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

        Attachments

          Activity

            People

            • Assignee:
              chetanm Chetan Mehrotra
              Reporter:
              chetanm Chetan Mehrotra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: