You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/09/28 11:00:00 UTC
[jira] [Commented] (SYNCOPE-1644) Task run failure with multi-node
deployments
[ https://issues.apache.org/jira/browse/SYNCOPE-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421317#comment-17421317 ]
ASF subversion and git services commented on SYNCOPE-1644:
----------------------------------------------------------
Commit f18da0d71fda4892466ea707cf297dc0f789f7ef in syncope's branch refs/heads/2_1_X from Francesco Chicchiriccò
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=f18da0d ]
[SYNCOPE-1644] Now relying on SpringBeanJobFactory which creates the bean and immediately executes it
> Task run failure with multi-node deployments
> --------------------------------------------
>
> Key: SYNCOPE-1644
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1644
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1.9
> Reporter: Francesco Chicchiriccò
> Assignee: Francesco Chicchiriccò
> Priority: Major
> Fix For: 2.1.10, 3.0.0
>
>
> Under certain conditions:
> * multi-node deployment
> * LB in front
> * task or report created and executed by two subsequent calls to LB, reaching two different back-end nodes (typically from Console)
> an error is raised:
> {code}
> org.quartz.SchedulerException: Job instantiation failed [See nested exception: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'taskJob379a7e29-e7cf-4373-9a7e-29e7cfa373b6' available]
> {code}
> This happens because [AutowiringSpringBeanJobFactory|https://github.com/apache/syncope/blob/syncope-2.1.9/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/job/AutowiringSpringBeanJobFactory.java] is expecting a singleton bean for each task or report to run: such a bean is registered upon task or report create, but remains in memory only for the node on which create has happened.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)