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

Prevent FileStore flush call before it's fully initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Segment Tar 0.0.16
    • segment-tar
    • None

    Description

      As seen on a local test, it can sometimes happen that the flush call comes before the bind call.

      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]
      

      Attachments

        1. OAK-4948.patch
          1 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: