Repositoryexception while updating documents in master repository

- I am using indexes but have been able to recreate the issue without indexes, it just occurs more frequently with indexes.- I do have eviction enabled but have been able to recreate the issue with eviction disabled.- I am using container managed transactions with each update is happening in it's own Tx. Jcr Session.save(Jcr Session.java:1171) [modeshape-jcr-4.5.0.

The issue occurs when several threads are making concurrent updates to the same repository.

Each thread starts and commits it's own Tx (via container managed transactions). Timeout Exception: Timeout while attempting to lock the keys [f5e46727505d6451e1455a-9fd2-4530-a3f0-7265f7e546c1] after 0 retry attempts. Timeout Exception: Timeout while attempting to lock the keys [f5e46727505d6451e1455a-9fd2-4530-a3f0-7265f7e546c1] after 0 retry attempts. Writable Session Cache.save(Writable Session Cache.java:670) [modeshape-jcr-4.5.0.

The problem seems to appear after the following error occurs during an update: ,820 ERROR [org.ejb3] (default task-7)

Guice Filter(Guice Filter.java:113) at org.eclipse.jetty.servlet. Servlet Handler$Cached Filter(Servlet Handler.java:1307) at org.eclipse.jetty.servlet. Servlet Handle(Servlet Handler.java:453) at org.eclipse.jetty.server.handler. Scoped Handler.handle(Scoped Handler.java:137) at org.eclipse.jetty.security. Security Handler.handle(Security Handler.java:560) at org.eclipse.jetty.server.session. Session Handle(Session Handler.java:231) at org.eclipse.jetty.server.handler. Context Handle(Context Handler.java:1072) at org.eclipse.jetty.servlet. Servlet Scope(Servlet Handler.java:382) at org.eclipse.jetty.server.session. Session Scope(Session Handler.java:193) at org.eclipse.jetty.server.handler. Context Scope(Context Handler.java:1006) at org.eclipse.jetty.server.handler. Scoped Handler.handle(Scoped Handler.java:135) at org.eclipse.jetty.server.handler. Context Handler Collection.handle(Context Handler Collection.java:255) at org.eclipse.jetty.server.handler.

Handler Collection.handle(Handler Collection.java:154) at org.eclipse.jetty.server.handler. Handler Wrapper.handle(Handler Wrapper.java:116) at org.eclipse.jetty.server. Server.handle(Server.java:365) at org.eclipse.jetty.server. Abstract Http Connection.handle Request(Abstract Http Connection.java:485) at org.eclipse.jetty.server.

Queued Thread Job(Queued Thread Pool.java:608) at org.eclipse.thread.

Web Application Impl.handle Request(Web Application Impl.java:1350) at container.servlet.

Web Component.service(Web Component.java:416) at container.servlet. Servlet Container.service(Servlet Container.java:538) at container.servlet. Servlet Container.service(Servlet Container.java:716) at javax. Http Servlet.service(Http Servlet.java:848) at com.google.inject.servlet. Servlet Service(Servlet Definition.java:263) at com.google.inject.servlet. Servlet Definition.service(Servlet Definition.java:178) at com.google.inject.servlet. Managed Servlet Pipeline.service(Managed Servlet Pipeline.java:91) at com.google.inject.servlet.

I am currently working on a test-app that can demonstrate this problem, once I have that I plan to open a JIRA but in the mean time if you have any ideas about how I can work around this I would appreciate any help you can provide.

155 more Once this error occurs the modeshape repository can be left in an inconsistent state where a child node exists and references a parent node, but the parent node does not contain a reference to the child node hence the org.cache. As you can see from the stack trace above the transaction is rollback by the container but it seems like a child node is not being correctly cleaned up.

Search for repositoryexception while updating documents in master repository:

repositoryexception while updating documents in master repository-53repositoryexception while updating documents in master repository-85repositoryexception while updating documents in master repository-22repositoryexception while updating documents in master repository-14

Http Parser.parse Next(Http Parser.java:856) at org.eclipse. Http Parser.parse Available(Http Parser.java:240) at org.eclipse.jetty.server. Async Http Connection.handle(Async Http Connection.java:82) at org.eclipse.nio.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “repositoryexception while updating documents in master repository”