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

The Azure readSegment should return null if no segment is found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.1
    • segment-tar
    • None

    Description

      04.05.2018 10:41:43.085 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak.segment.SegmentNotFoundExceptionListener Segment not found: c2e583b9-f9ab-4e20-a7a7-638727a7537d. SegmentId age=1ms
      org.apache.jackrabbit.oak.segment.SegmentNotFoundException: Segment c2e583b9-f9ab-4e20-a7a7-638727a7537d not found
      	at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.asSegmentNotFoundException(AbstractFileStore.java:143) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.FileStore.readSegment(FileStore.java:464) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentId.getSegment(SegmentId.java:154) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.CachingSegmentReader$2.apply(CachingSegmentReader.java:118) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.CachingSegmentReader$2.apply(CachingSegmentReader.java:114) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.ReaderCache.get(ReaderCache.java:118) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.CachingSegmentReader.readTemplate(CachingSegmentReader.java:114) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.getTemplate(SegmentNodeState.java:110) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.getChildNode(SegmentNodeState.java:421) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeStore.getRoot(SegmentNodeStore.java:182) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.spi.cluster.ClusterRepositoryInfo.getOrCreateId(ClusterRepositoryInfo.java:68) [org.apache.jackrabbit.oak-store-spi:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.registerSegmentStore(SegmentNodeStoreService.java:659) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeStoreFactory.activate(SegmentNodeStoreFactory.java:141) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2199) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3932) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at org.apache.jackrabbit.oak.segment.SegmentCache$NonEmptyCache.getSegment(SegmentCache.java:161) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.FileStore.readSegment(FileStore.java:462) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	... 48 common frames omitted
      Caused by: java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.segment.azure.AzureSegmentArchiveReader.readSegment(AzureSegmentArchiveReader.java:73) [org.apache.jackrabbit.oak-segment-azure:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.tar.TarReader.readEntry(TarReader.java:310) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.tar.TarFiles.readSegment(TarFiles.java:500) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.AbstractFileStore.readSegmentUncached(AbstractFileStore.java:267) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.file.FileStore.lambda$readSegment$9(FileStore.java:462) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at org.apache.jackrabbit.oak.segment.SegmentCache$NonEmptyCache.lambda$getSegment$0(SegmentCache.java:164) [org.apache.jackrabbit.oak-segment-tar:1.9.0.R1830742]
      	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193) [com.adobe.granite.osgi.wrapper.guava:15.0.0.0002]
      	... 52 common frames omitted
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomek.rekawek Tomek Rękawek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: