Skip to content

Locker hardening #211

@krystian-panek-vmltech

Description

@krystian-panek-vmltech

introduce retry mechanism as in ensureResource etc

dev.vml.es.acm.core.AcmException: Cannot delete lock 'executor/console'!	at dev.vml.es.acm.core.code.Locker.unlock(Locker.java:87)	at dev.vml.es.acm.core.code.Executor.lambda$executeImmediately$2(Executor.java:199)	at dev.vml.es.acm.core.code.Executor.lambda$useLocker$7(Executor.java:333)	at dev.vml.es.acm.core.util.ResolverUtils.lambda$useContentResolver$0(ResolverUtils.java:54)	at dev.vml.es.acm.core.util.ResolverUtils.queryContentResolver(ResolverUtils.java:45)	at dev.vml.es.acm.core.util.ResolverUtils.useContentResolver(ResolverUtils.java:53)	at dev.vml.es.acm.core.code.Executor.useLocker(Executor.java:333)	at dev.vml.es.acm.core.code.Executor.executeImmediately(Executor.java:199)	at dev.vml.es.acm.core.code.Executor.execute(Executor.java:150)	at dev.vml.es.acm.core.code.ExecutionQueue.executeAsync(ExecutionQueue.java:249)	at dev.vml.es.acm.core.code.ExecutionQueue.lambda$process$7(ExecutionQueue.java:196)	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)	at java.base/java.lang.Thread.run(Thread.java:1583) 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:619)	at org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.commit(AuthenticatedResourceProvider.java:268)	at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.commit(ResourceResolverControl.java:565)	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.commit(ResourceResolverImpl.java:1056)	at dev.vml.es.acm.core.code.Locker.unlock(Locker.java:84)	... 14 more Caused by: javax.jcr.InvalidItemStateException: OakState0001: OakState0001: Unresolved conflicts in /var/acm/lock/executor	at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:238)	at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:213)	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.newRepositoryException(SessionDelegate.java:745)	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.save(SessionDelegate.java:559)	at org.apache.jackrabbit.oak.jcr.session.SessionImpl$9.performVoid(SessionImpl.java:460)	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:306)	at org.apache.jackrabbit.oak.jcr.session.SessionImpl.save(SessionImpl.java:457)	at com.adobe.granite.repository.impl.CRX3SessionImpl.save(CRX3SessionImpl.java:232)	at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.commit(JcrResourceProvider.java:617)	... 18 more Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: OakState0001: Unresolved conflicts in /var/acm/lock/executor	at org.apache.jackrabbit.oak.repositoryservice.remote.commons.HttpMessage.createCommitFailedExceptionFromMessage(HttpMessage.java:342) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions