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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2016/10/19 07:24:59 UTC

[jira] [Resolved] (OAK-4948) Prevent FileStore flush call before it's fully initialized

     [ https://issues.apache.org/jira/browse/OAK-4948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Parvulescu resolved OAK-4948.
----------------------------------
    Resolution: Fixed
      Assignee: Alex Parvulescu

fixed with http://svn.apache.org/viewvc?rev=1765542&view=rev

> Prevent FileStore flush call before it's fully initialized
> ----------------------------------------------------------
>
>                 Key: OAK-4948
>                 URL: https://issues.apache.org/jira/browse/OAK-4948
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>             Fix For: Segment Tar 0.0.16
>
>         Attachments: OAK-4948.patch
>
>
> As seen on a local test, it can sometimes happen that the {{flush}} call comes before the {{bind}} call.
> {noformat}
> java.lang.IllegalStateException: Revisions not bound to a store
>         at com.google.common.base.Preconditions.checkState(Preconditions.java:150) ~[guava-15.0.jar:na]
>         at org.apache.jackrabbit.oak.segment.file.TarRevisions.checkBound(TarRevisions.java:183) ~[classes/:na]
>         at org.apache.jackrabbit.oak.segment.file.TarRevisions.flush(TarRevisions.java:198) ~[classes/:na]
>         at org.apache.jackrabbit.oak.segment.file.FileStore.flush(FileStore.java:382) ~[classes/:na]
>         at org.apache.jackrabbit.oak.segment.file.FileStore$3.run(FileStore.java:227) ~[classes/:na]
>         at org.apache.jackrabbit.oak.segment.file.SafeRunnable.run(SafeRunnable.java:67) ~[classes/:na]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)