[jboss-jira] [JBoss JIRA] (WFLY-10130) A Timer will hang forever if the database connection is not available
Jörg Bäsner (JIRA)
issues at jboss.org
Wed Mar 28 09:29:07 EDT 2018
[ https://issues.jboss.org/browse/WFLY-10130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörg Bäsner updated WFLY-10130:
-------------------------------
Description:
Having a Timer annotated like:
{code}
@Schedule(second = "*/15", minute = "*", hour = "*", persistent = true)
public void timeoutMethod() {
{code}
and a server configuration like:
{code:xml}
<timer-service thread-pool-name="default" default-data-store="clustered-store">
<data-stores>
<database-data-store name="clustered-store" datasource-jndi-name="java:jboss/datasources/ExampleDS"/>
</data-stores>
</timer-service>
{code:xml}
will lead to a hanging Timer in case the Database connection is not available and only a restart of the server will recover the Timer.
was:
Having a Timer annotated like:
@Schedule(second = "*/15", minute = "*", hour = "*", persistent = true)
public void timeoutMethod() {
and a server configuration like:
<timer-service thread-pool-name="default" default-data-store="clustered-store">
<data-stores>
<database-data-store name="clustered-store" datasource-jndi-name="java:jboss/datasources/ExampleDS"/>
</data-stores>
</timer-service>
will lead to a hanging Timer in case the Database connection is not available and only a restart of the server will recover the Timer.
> A Timer will hang forever if the database connection is not available
> ---------------------------------------------------------------------
>
> Key: WFLY-10130
> URL: https://issues.jboss.org/browse/WFLY-10130
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 12.0.0.Final
> Reporter: Jörg Bäsner
> Assignee: Jörg Bäsner
>
> Having a Timer annotated like:
> {code}
> @Schedule(second = "*/15", minute = "*", hour = "*", persistent = true)
> public void timeoutMethod() {
> {code}
> and a server configuration like:
> {code:xml}
> <timer-service thread-pool-name="default" default-data-store="clustered-store">
> <data-stores>
> <database-data-store name="clustered-store" datasource-jndi-name="java:jboss/datasources/ExampleDS"/>
> </data-stores>
> </timer-service>
> {code:xml}
> will lead to a hanging Timer in case the Database connection is not available and only a restart of the server will recover the Timer.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list