[JBoss JIRA] (AS7-6568) TimerService.*SecondTestCase often fails intermittently
by Ivo Studensky (JIRA)
[ https://issues.jboss.org/browse/AS7-6568?page=com.atlassian.jira.plugin.s... ]
Ivo Studensky resolved AS7-6568.
--------------------------------
Resolution: Cannot Reproduce Bug
I am closing this. I could not reproduce it outside of the lightning. As stated in the relevant PR the culprit of this was the change of the surefire working directory from '${basedir}/target/workdir' to '${basedir}'. But it is still unclear how such a change can interfere with the second timer testcases.
> TimerService.*SecondTestCase often fails intermittently
> -------------------------------------------------------
>
> Key: AS7-6568
> URL: https://issues.jboss.org/browse/AS7-6568
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 8.0.0.Alpha1
> Reporter: Ivo Studensky
> Assignee: Ivo Studensky
>
> Two of the timer service tests in AS7 testsuite often fails due to a timeout. At least it looks like a timeout issue unless there is something else rotten in them. The tests wait 30s for the invocation of a timer which seems not to be sufficient sometimes. Need to say that 30s is a quite long timeout. It is weird. See the following PR for an example of such failures at the lightning.
> https://github.com/jbossas/jboss-as/pull/4093
> Affected tests:
> TimerServicePersistenceSecondTestCase.testTimerServiceCalled
> TimerServiceSerializationSecondTestCase.testTimerServiceRestoredWithCorrectInfo
> I will try to reproduce it on QE Hudson as the tests pass nicely when running locally on my laptop.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] (AS7-6655) binding subcontexts with <lookup> does not work
by James Livingston (JIRA)
James Livingston created AS7-6655:
-------------------------------------
Summary: binding subcontexts with <lookup> does not work
Key: AS7-6655
URL: https://issues.jboss.org/browse/AS7-6655
Project: Application Server 7
Issue Type: Bug
Components: Naming
Affects Versions: 7.1.3.Final (EAP)
Reporter: James Livingston
Assignee: Eduardo Martins
If you attempt to bind a subcontext via <lookup> in the naming subsystem it will fail when anything is looked up under it.
To reproduce, add <lookup name="java:jboss/ds" lookup="java:jboss/datasources"/>, and then look up something under java:jboss/ds/
In ServiceBasedNamingStore.lookup() it needs to return a ResolveResult, but the (!(obj instanceof NamingContext)) check skips it.
As a work-around, you can write an object factory which looks up the sub-context and then returns a wrapper around it, a Context implementation which simply delegates all methods to the original context. Since that wrapper is not a NamingContext instance, it works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] (AS7-6653) Add clustered database based timers
by Stuart Douglas (JIRA)
[ https://issues.jboss.org/browse/AS7-6653?page=com.atlassian.jira.plugin.s... ]
Stuart Douglas reassigned AS7-6653:
-----------------------------------
Assignee: Stuart Douglas (was: jaikiran pai)
> Add clustered database based timers
> -----------------------------------
>
> Key: AS7-6653
> URL: https://issues.jboss.org/browse/AS7-6653
> Project: Application Server 7
> Issue Type: Feature Request
> Components: EJB
> Reporter: Stuart Douglas
> Assignee: Stuart Douglas
> Fix For: 8.0.0.Alpha1
>
>
> Clustering should be supported for database timers.
> The general ideal will be that a single database is shared by all nodes in the cluster. When a timer is created it will be inserted into the database. Periodically at a configured interval nodes will refresh their list of active timers from the database.
> When a timer expires a node will attempt to grab ownership of the timer in the database by updating the row. Due to the use of either optimisitic locking or traditional DB locks only 1 node will be successful, and that node will run the task.
> We will also support write only nodes, nodes that can create timer tasks, but do not attempt to run them, to allow timer tasks to be run by a subset of the nodes.
> So that you don't have hundreds of existing partition name feature will allow clustered timers to be grouped into smaller partitions, so you can limit the number of nodes that are contending for a timer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months