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

Exceptions while running PersistentDiskCacheTest

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: segment-tar
    • Labels:
      None

      Description

      Running PersistentDiskCacheTests causes exceptions.

      On Mac OS X:

      Exception in thread "pool-5-thread-8" java.io.UncheckedIOException: java.nio.file.NoSuchFileException: target/junit8196119220696931311/junit15141171488508896763/6fae1f42-0bd7-54fd-a6c6-bd37e13536a22272920515766574.part
              at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
              at java.base/java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
              at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1811)
              at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
              at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
              at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
              at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
              at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache$StreamConsumer.forEach(PersistentDiskCache.java:230)
              at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.cleanUpInternal(PersistentDiskCache.java:194)
              at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.cleanUp(PersistentDiskCache.java:180)
              at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.lambda$writeSegment$5(PersistentDiskCache.java:162)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.nio.file.NoSuchFileException: target/junit8196119220696931311/junit15141171488508896763/6fae1f42-0bd7-54fd-a6c6-bd37e13536a22272920515766574.part
              at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
              at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
              at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
              at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
              at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
              at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
              at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
              at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
              at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
              at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
              ... 13 more
      

      On Windows I see the following exception while running cleanupTest.

      Exception in thread "pool-5-thread-2"
      java.lang.IllegalArgumentException: Comparison method violates its
      general contract!
      at java.util.TimSort.mergeHi(TimSort.java:899)
      at java.util.TimSort.mergeAt(TimSort.java:516)
      at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
      at java.util.TimSort.sort(TimSort.java:254)
      at java.util.Arrays.sort(Arrays.java:1512)
      at java.util.ArrayList.sort(ArrayList.java:1460)
      at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:387)
      at java.util.stream.Sink$ChainedReference.end(Sink.java:258)
      at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:210)
      at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
      at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
      at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache$StreamConsumer.forEach(PersistentDiskCache.java:233)
      at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.cleanUpInternal(PersistentDiskCache.java:197)
      at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.cleanUp(PersistentDiskCache.java:183)
      at org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCache.lambda$writeSegment$5(PersistentDiskCache.java:165)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            • Assignee:
              adulceanu Andrei Dulceanu
              Reporter:
              mreutegg Marcel Reutegger

              Dates

              • Created:
                Updated:

                Issue deployment