Hi,--I have written a CMS Scheduler job (PFA sample code) which fetches data from an external API and creates CMS documents corresponding to the records fetched. It also updates the CMS documents if already present and if any data from external API is different from what is stored in CMS for the corresponding document. It also unpublishes modified CMS documents if they are in Published state.This Job extends the RepositoryJob from Hippo and the code resides in the CMS WAR.The code seems to work fine and is serving the purpose.But the problem is faced when I configure the scheduler to run frequently say every 5 minutes or so and at the same time multiple users access the CMS and try to update the documents randomly.Things suddenly hang up and CMS becomes unresponsive and after sometime it starts giving proxy error.If I check the logs then I can find following exceptions: (For details please refer log snapshot in attachment)05.01.2016 08:01:45 WARN Hippo JCR Quartz Job Scheduler_Worker-2 [ClusterNode.setRevision:874] Unable to set current revision to 5943.org.apache.jackrabbit.core.journal.JournalException: Failed to update local revision.Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction05.01.2016 08:03:00 WARN jackrabbit-pool-8 [LockManagerImpl$TimeoutHandlerVisitor.elementVisited:197] Unable to expire the lock. NodeId 00ee2298-79b9-41b7-924f-0cc7bd75441djavax.jcr.RepositoryException: Unable to remove lock properties.05.01.2016 08:03:02 WARN jackrabbit-pool-3 [LockManagerImpl$TimeoutHandlerVisitor.elementVisited:197] Unable to expire the lock. NodeId 00ee2298-79b9-41b7-924f-0cc7bd75441djavax.jcr.RepositoryException: Unable to remove lock properties.I have to restart the server in order to get the CMS working.If I stop the CMS scheduler job some how then CMS works fine.So I suspect something in the CMS code is wrong and causing this.Can you please provide some guidance as to what could be causing this problem.Thanks,Santanu
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
Hi Jasper,My understanding is that the finally block is always executed except for following scenarios in which they may be skipped1. Another thread calls an interrupt on the current threat2. JVM crash3. System.exit()
Path: | /hippo:configuration/hippo:modules/scheduler/hippo:moduleconfig/AimiaRepositoryJobGroup/RewardJob/hipposched:triggers/RewardSchedule |