You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/02/12 11:34:18 UTC
[jira] [Resolved] (OAK-4013) DataStoreTextWriter should not write
on close when running in readOnly mode
[ https://issues.apache.org/jira/browse/OAK-4013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra resolved OAK-4013.
----------------------------------
Resolution: Fixed
Done with 1729972
> DataStoreTextWriter should not write on close when running in readOnly mode
> ---------------------------------------------------------------------------
>
> Key: OAK-4013
> URL: https://issues.apache.org/jira/browse/OAK-4013
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.3.16
>
>
> {{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
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)