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

IllegalStateException when closing the FileStore during garbage collection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.8, 1.8.0
    • Component/s: segment-tar
    • Labels:

      Description

      When the file store is shut down during gc compaction is properly aborted. Afterwards it will trigger a cleanup cycle though, which runs concurrently to the proceeding shutdown potentially causing an ISE:

      at com.google.common.base.Preconditions.checkState(Preconditions.java:134)
      at org.apache.jackrabbit.oak.segment.file.TarWriter.close(TarWriter.java:333)
      at org.apache.jackrabbit.oak.segment.file.TarWriter.createNextGeneration(TarWriter.java:376)
      at org.apache.jackrabbit.oak.segment.file.FileStore.newWriter(FileStore.java:682)
      at org.apache.jackrabbit.oak.segment.file.FileStore.access$1700(FileStore.java:100)
      at org.apache.jackrabbit.oak.segment.file.FileStore$GarbageCollector.cleanup(FileStore.java:1069)
      at org.apache.jackrabbit.oak.segment.file.FileStore$GarbageCollector.cleanupGeneration(FileStore.java:1195)
      at org.apache.jackrabbit.oak.segment.file.FileStore$GarbageCollector.run(FileStore.java:803)
      at org.apache.jackrabbit.oak.segment.file.FileStore.gc(FileStore.java:387)
      

        Attachments

        1. OAK-6193-01.patch
          16 kB
          Francesco Mari
        2. OAK-6193-02.patch
          15 kB
          Francesco Mari

          Activity

            People

            • Assignee:
              frm Francesco Mari
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: