Failover Tests fail
-------------------
Key: QPID-1206
URL: https://issues.apache.org/jira/browse/QPID-1206
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: M3
Reporter: Aidan Skinner
Assignee: Aidan Skinner
Priority: Critical
Fix For: M3
FT-01, FT-02 and FT-03 all fail with:
There was 1 error:
1)
testAsyncPingOk(org.apache.qpid.ping.PingAsyncTestPerf)org.apache.qpid.client.JMSAMQException:
Failover has occurred and session is dirty so unable to send.
at
org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:450)
at
org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:422)
at
org.apache.qpid.client.BasicMessageProducer.send(BasicMessageProducer.java:302)
at
org.apache.qpid.requestreply.PingPongProducer.sendMessage(PingPongProducer.java:1295)
at
org.apache.qpid.requestreply.PingPongProducer.pingNoWaitForReply(PingPongProducer.java:1168)
at
org.apache.qpid.requestreply.PingPongProducer.pingAndWaitForReply(PingPongProducer.java:1082)
at
org.apache.qpid.ping.PingAsyncTestPerf.testAsyncPingOk(PingAsyncTestPerf.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
org.apache.qpid.junit.extensions.AsymptoticTestCase.runTest(AsymptoticTestCase.java:254)
at
org.apache.qpid.junit.extensions.TKTestResult.run(TKTestResult.java:382)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestDecorator.run(TestDecorator.java:28)
at
org.apache.qpid.junit.extensions.AsymptoticTestDecorator.run(AsymptoticTestDecorator.java:156)
at
org.apache.qpid.junit.extensions.ScaledTestDecorator$TestThreadHandler.run(ScaledTestDecorator.java:333)
at java.lang.Thread.run(Thread.java:619)
FAILURES!!!
Tests run: 1, Failures: 0, Errors: 1
FT-04 passes.
FT-05 claims to pass, but causes these on the second broker:
2008-07-31 14:07:03,847 ERROR [pool-1-thread-4] protocol.AMQMinaProtocolSession
(AMQMinaProtocolSession.java:274) - Received incorrect protocol initiation
org.apache.qpid.framing.AMQProtocolHeaderException: Protocol header is not
correct: Got P should be: AMQP
at
org.apache.qpid.framing.ProtocolInitiation.checkVersion(ProtocolInitiation.java:155)
at
org.apache.qpid.server.protocol.AMQMinaProtocolSession.protocolInitiationReceived(AMQMinaProtocolSession.java:255)
at
org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:190)
at
org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:244)
at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at
org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:334)
at
org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
at
org.apache.mina.filter.codec.QpidProtocolCodecFilter.messageReceived(QpidProtocolCodecFilter.java:174)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
at org.apache.qpid.pool.Job.processAll(Job.java:114)
at org.apache.qpid.pool.Job.run(Job.java:153)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
and these are logged to the client:
Failover 2008-07-31 14:07:33,011 ERROR [apache.qpid.client.AMQConnection]
Throwable Received but no listener set: Server closed connection and no
failover was successful
Thread-1 2008-07-31 14:08:03,019 ERROR [apache.qpid.client.AMQConnection] Error
closing session: javax.jms.JMSException: Error closing session:
org.apache.qpid.AMQTimeoutException: Server did not respond in a timely fashion
[error code 408: Request Timeout]
Thread-1 2008-07-31 14:08:03,019 WARN [apache.qpid.ping.PingTestPerf] There was
an exception during per thread tear down.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.