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

Checkpoints.getOldestRevisionToKeep shouldn't failed if called read-only

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.60.0
    • 1.62.0
    • documentmk
    • None

    Description

      Below exception could occur and should be avoided:

        java.lang.UnsupportedOperationException: Method - findAndUpdate. Params: [settings, key: checkpoint update {data.r17cea1494d3-0-1=REMOVE_MAP_ENTRY null}]
        	at org.apache.jackrabbit.oak.plugins.document.util.ReadOnlyDocumentStoreWrapperFactory$1.invoke(ReadOnlyDocumentStoreWrapperFactory.java:38)
        	at com.sun.proxy.$Proxy0.findAndUpdate(Unknown Source)
        	at org.apache.jackrabbit.oak.plugins.document.Checkpoints.getOldestRevisionToKeep(Checkpoints.java:149)
        	at org.apache.jackrabbit.oak.plugins.document.VersionGCRecommendations.<init>(VersionGCRecommendations.java:181)
      

      Attachments

        Issue Links

          Activity

            People

              stefanegli Stefan Egli
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: