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

DocumentNodeStore.compare() fails with IllegalStateException in read-only mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0, 1.8.0
    • documentmk
    • None

    Description

      Comparing node states in read-only mode may fail with an IllegalStateException when the journal is used to perform a diff.

      java.lang.IllegalStateException: Root document does not have a lastRev entry for local clusterId 0
          at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2199)
          at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
          at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
          at org.apache.jackrabbit.oak.plugins.document.MemoryDiffCache.getChanges(MemoryDiffCache.java:83)
          at org.apache.jackrabbit.oak.plugins.document.TieredDiffCache.getChanges(TieredDiffCache.java:50)
          at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.compare(DocumentNodeStore.java:1632)
      [...]
      Caused by: java.lang.IllegalStateException: Root document does not have a lastRev entry for local clusterId 0
          at org.apache.jackrabbit.oak.plugins.document.JournalDiffLoader.call(JournalDiffLoader.java:82)
          at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.diffImpl(DocumentNodeStore.java:2428)
      

      See also OAK-6011.

      Attachments

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: