Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-23

Support cluster ID in configuration of scheduled job

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • None
    • Linux Ubuntu, Java 1.6

    Description

      We have our public instance setup to use a shared repository and have a customer requirement to have RSS Aggregator run and import updates every few mins. When we run the public instances with clustering (on same db), we run into an issue where each of the instances is throwing a javax.jcr.InvalidItemStateException:

      info.magnolia.module.data.importer.ImportException: Error while importing with handler [rssaggregator]:can't create parent [/rssaggregator]:202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the item cannot be removed because it has been modified externally.
      	at info.magnolia.module.data.importer.ImportHandler.execute(ImportHandler.java:464)
      	at info.magnolia.module.data.commands.ImportCommand.execute(ImportCommand.java:82)
      	at info.magnolia.commands.MgnlCommand.executePooledOrSynchronized(MgnlCommand.java:170)
      	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:157)
      	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:84)
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      Caused by: info.magnolia.module.data.importer.ImportException: can't create parent [/rssaggregator]:202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the item cannot be removed because it has been modified externally.
      	at info.magnolia.module.data.importer.ImportHandler.getParent(ImportHandler.java:295)
      	at info.magnolia.module.data.importer.ImportHandler.lock(ImportHandler.java:271)
      	at info.magnolia.module.data.importer.ImportHandler.executeImport(ImportHandler.java:194)
      	at info.magnolia.module.data.importer.ImportHandler.execute(ImportHandler.java:461)
      	... 6 more
      Caused by: javax.jcr.InvalidItemStateException: 202013d7-cf55-41ec-8cab-5a8e1c923d67/{}importState: the item cannot be removed because it has been modified externally.
      	at org.apache.jackrabbit.core.ItemImpl.getRemovedStates(ItemImpl.java:330)
      	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:966)
      	at info.magnolia.cms.core.DefaultContent.save(DefaultContent.java:532)
      	at info.magnolia.module.data.importer.ImportHandler.getParent(ImportHandler.java:290)
      	... 9 more
      ERROR  info.magnolia.module.data.commands.ImportCommand 18.12.2011 07:20:01 -- exception during importing
      

      This is causing the RSS Feeds to not display at all on public instances.

      Note that running a clustered environment is essential to achieve the required level of scalability so only running aggregator on one of them is not acceptable.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                rgibson Rory Gibson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD