[ 
https://issues.apache.org/jira/browse/OOZIE-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Bacsko resolved OOZIE-3241.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 5.1.0

> Flaky test 
> TestRecoveryService#testCoordActionRecoveryServiceForWaitingRegisterPartition
> ----------------------------------------------------------------------------------------
>
>                 Key: OOZIE-3241
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3241
>             Project: Oozie
>          Issue Type: Sub-task
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>             Fix For: 5.1.0
>
>         Attachments: OOZIE-3241.txt
>
>
> The test 
> TestRecoveryService#testCoordActionRecoveryServiceForWaitingRegisterPartition 
> occasionally fails with the following error:
> {noformat}
> junit.framework.AssertionFailedError
>       at 
> org.apache.oozie.service.TestRecoveryService.testCoordActionRecoveryServiceForWaitingRegisterPartition(TestRecoveryService.java:506)
> {noformat}
> Errors in the test:
> {noformat}
> [jndiProperties=java.naming.factory.initial#org.apache.activemq.jndi.ActiveMQInitialContextFactory;java.naming.provider.url#vm://localhost?broker.persistent=falseconnectionFactoryNames#ConnectionFactory]]
> javax.jms.JMSException: Could not create Transport. Reason: 
> javax.management.InstanceAlreadyExistsException: 
> org.apache.activemq:type=Broker,brokerName=localhost
>       at 
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>       at 
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:332)
>       at 
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:345)
>       at 
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>       at 
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:243)
>       at 
> org.apache.oozie.jms.DefaultConnectionContext.createConnection(DefaultConnectionContext.java:53)
>       at 
> org.apache.oozie.service.JMSAccessorService.createConnectionContext(JMSAccessorService.java:264)
>       at 
> org.apache.oozie.service.JMSAccessorService.registerForNotification(JMSAccessorService.java:110)
>       at 
> org.apache.oozie.service.HCatAccessorService.registerForNotification(HCatAccessorService.java:236)
>       at 
> org.apache.oozie.dependency.HCatURIHandler.registerForNotification(HCatURIHandler.java:119)
>       at 
> org.apache.oozie.command.coord.CoordPushDependencyCheckXCommand.registerForNotification(CoordPushDependencyCheckXCommand.java:314)
>       at 
> org.apache.oozie.command.coord.CoordPushDependencyCheckXCommand.execute(CoordPushDependencyCheckXCommand.java:174)
>       at 
> org.apache.oozie.command.coord.CoordPushDependencyCheckXCommand.execute(CoordPushDependencyCheckXCommand.java:62)
>       at org.apache.oozie.command.XCommand.call(XCommand.java:290)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:181)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: javax.management.InstanceAlreadyExistsException: 
> org.apache.activemq:type=Broker,brokerName=localhost
>       at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
>       at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
>       at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
>       at 
> org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:408)
>       at 
> org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:72)
>       at 
> org.apache.activemq.broker.BrokerService.startManagementContext(BrokerService.java:2581)
>       at 
> org.apache.activemq.broker.BrokerService.start(BrokerService.java:606)
>       at 
> org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:127)
>       at 
> org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:56)
>       at 
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:69)
>       at 
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:330)
>       ... 17 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to