Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8245

ResourcePersistingScanResultHandler throws PersistenceException: Unable to commit changes to session.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Clam 1.1.0
    • Component/s: JCR, Oak
    • Labels:
      None

      Description

      org.apache.sling.clam.job.internal.JcrPropertyScanJobConsumer org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
      java.lang.RuntimeException: org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
      	at org.apache.sling.clam.result.internal.ResourcePersistingScanResultHandler.persistResult(ResourcePersistingScanResultHandler.java:152) [org.apache.sling.clam:1.0.3.20190126101859190]
      	at org.apache.sling.clam.result.internal.ResourcePersistingScanResultHandler.handleJcrPropertyScanResult(ResourcePersistingScanResultHandler.java:121) [org.apache.sling.clam:1.0.3.20190126101859190]
      	at org.apache.sling.clam.job.internal.JcrPropertyScanJobConsumer.invokeScanResultHandlers(JcrPropertyScanJobConsumer.java:136) [org.apache.sling.clam:1.0.3.20190126101859190]
      	at org.apache.sling.clam.job.internal.JcrPropertyScanJobConsumer.process(JcrPropertyScanJobConsumer.java:109) [org.apache.sling.clam:1.0.3.20190126101859190]
      	at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.10]
      	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293) [org.apache.sling.event:4.2.10]
      	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.10]
      	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229) [org.apache.sling.event:4.2.10]
      	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)
      Caused by: org.apache.sling.api.resource.PersistenceException: Unable to commit changes to session.
      	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.commit(JcrResourceProvider.java:519) [org.apache.sling.jcr.resource:3.0.8]
      	at org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.commit(AuthenticatedResourceProvider.java:215) [org.apache.sling.resourceresolver:1.5.34]
      	at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.commit(ResourceResolverControl.java:424) [org.apache.sling.resourceresolver:1.5.34]
      	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.commit(ResourceResolverImpl.java:1180) [org.apache.sling.resourceresolver:1.5.34]
      	at org.apache.sling.clam.result.internal.ResourcePersistingScanResultHandler.persistResult(ResourcePersistingScanResultHandler.java:145) [org.apache.sling.clam:1.0.3.20190126101859190]
      	... 10 common frames omitted
      Caused by: javax.jcr.InvalidItemStateException: OakState0001: Unresolved conflicts in /var/clam/results/2019/01/26/11/27/07/884/Binary
      	at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:237) [org.apache.jackrabbit.oak-api:1.8.2]
      	at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212) [org.apache.jackrabbit.oak-api:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:670) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:496) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.session.SessionImpl$8.performVoid(SessionImpl.java:420) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:274) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:417) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at com.adobe.granite.repository.impl.CRX3SessionImpl.save(CRX3SessionImpl.java:208) [com.adobe.granite.repository:1.4.88]
      	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.commit(JcrResourceProvider.java:517) [org.apache.sling.jcr.resource:3.0.8]
      	... 14 common frames omitted
      Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts in /var/clam/results/2019/01/26/11/27/07/884/Binary
      	at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.failOnMergeConflict(ConflictValidator.java:115) [org.apache.jackrabbit.oak-core:1.8.2]
      	at org.apache.jackrabbit.oak.plugins.commit.ConflictValidator.propertyChanged(ConflictValidator.java:90) [org.apache.jackrabbit.oak-core:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.propertyChanged(CompositeEditor.java:91) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.propertyChanged(EditorDiff.java:93) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareProperties(SegmentNodeState.java:632) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:491) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:566) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:566) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:566) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:566) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:566) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:423) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:619) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:55) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61) [org.apache.jackrabbit.oak-store-spi:1.8.2]
      	at org.apache.jackrabbit.oak.segment.scheduler.Commit.apply(Commit.java:78) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.scheduler.LockBasedScheduler.execute(LockBasedScheduler.java:265) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.scheduler.LockBasedScheduler.schedule(LockBasedScheduler.java:236) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.segment.SegmentNodeStore.merge(SegmentNodeStore.java:195) [org.apache.jackrabbit.oak-segment-tar:1.8.2]
      	at org.apache.jackrabbit.oak.core.MutableRoot.commit(MutableRoot.java:250) [org.apache.jackrabbit.oak-core:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:347) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:494) [org.apache.jackrabbit.oak-jcr:1.8.2]
      	... 19 common frames omitted
      

        Attachments

          Activity

            People

            • Assignee:
              olli Oliver Lietz
              Reporter:
              olli Oliver Lietz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: