You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/18 14:38:18 UTC

[jira] [Commented] (QPID-7080) MultiNodeTest#testQuorumOverride may fail sporadically

    [ https://issues.apache.org/jira/browse/QPID-7080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152310#comment-15152310 ] 

ASF subversion and git services commented on QPID-7080:
-------------------------------------------------------

Commit 1731073 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1731073 ]

QPID-7080: [Java Tests - BDB HA] Prevent sporadic failure from MultiNodeTest#testQuorumOverride

> MultiNodeTest#testQuorumOverride may fail sporadically
> ------------------------------------------------------
>
>                 Key: QPID-7080
>                 URL: https://issues.apache.org/jira/browse/QPID-7080
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker, Java Tests
>            Reporter: Keith Wall
>            Priority: Minor
>
> Tes MultiNodeTest#testQuorumOverride is racey.    The test verifies the behaviour of a group when all the replicas are killed and quorum override is applied to allow the master to continue in isolation.
> The test currently assumes that failover doesn't occur.  This is wrong, failover may occur is the master discovers itself alone before the quorum override is applied.  This discovery is asynchronous.  The test cannot predict if failover will occur of not.
> In the unlucky case where failure occurs, the the failover happens whilst the test is committing a transaction. The transaction will correctly.  The test does include code to retry failed transactions. 
> Error Message
> Session exception occurred while trying to commit: sender for socket /127.0.0.1:36660-localhost/127.0.0.1:10000 is closed
> Stacktrace
> javax.jms.JMSException: Session exception occurred while trying to commit: sender for socket /127.0.0.1:36660-localhost/127.0.0.1:10000 is closed
> 	at org.apache.qpid.transport.network.io.IoSender.checkNotAlreadyClosed(IoSender.java:377)
> 	at org.apache.qpid.transport.network.io.IoSender.send(IoSender.java:122)
> 	at org.apache.qpid.client.AMQProtocolHandler.writeFrame(AMQProtocolHandler.java:563)
> 	at org.apache.qpid.client.AMQSession_0_8.acknowledgeMessage(AMQSession_0_8.java:177)
> 	at org.apache.qpid.client.AMQSession_0_8.commitImpl(AMQSession_0_8.java:271)
> 	at org.apache.qpid.client.AMQSession.commit(AMQSession.java:866)
> 	at org.apache.qpid.test.utils.QpidBrokerTestCase.assertProducingConsuming(QpidBrokerTestCase.java:1265)
> 	at org.apache.qpid.server.store.berkeleydb.replication.MultiNodeTest.testQuorumOverride(MultiNodeTest.java:483)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org