qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Rudyy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-7050) [Java Broker] State change executor shutdown might delay closing of virtual host node when state change functionality is performed in parallel with replication environment facade close
Date Thu, 04 Feb 2016 15:15:39 GMT

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

Alex Rudyy updated QPID-7050:
-----------------------------
    Attachment: TEST-org.apache.qpid.server.store.berkeleydb.replication.BDBHAVirtualHostNodeRestTest.testIntruderProtection.txt

Attached failing test log file:

{noformat}
Attribute state did not reach expected value within permitted timeout 5000ms. expected:<ERRORED>
but was:<ACTIVE>

Stacktrace

junit.framework.AssertionFailedError: Attribute state did not reach expected value within
permitted timeout 5000ms. expected:<ERRORED> but was:<ACTIVE>
	at junit.framework.Assert.fail(Assert.java:57)
	at junit.framework.Assert.failNotEquals(Assert.java:329)
	at junit.framework.Assert.assertEquals(Assert.java:78)
	at junit.framework.TestCase.assertEquals(TestCase.java:244)
	at org.apache.qpid.systest.rest.QpidRestTestCase.waitForAttributeChanged(QpidRestTestCase.java:103)
	at org.apache.qpid.server.store.berkeleydb.replication.BDBHAVirtualHostNodeRestTest.testIntruderProtection(BDBHAVirtualHostNodeRestTest.java:319)

{noformat}

> [Java Broker] State change executor shutdown might delay closing of virtual host node
when state change functionality is performed in parallel with replication environment facade
close
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-7050
>                 URL: https://issues.apache.org/jira/browse/QPID-7050
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.32, qpid-java-6.0, qpid-java-6.1
>            Reporter: Alex Rudyy
>         Attachments: TEST-org.apache.qpid.server.store.berkeleydb.replication.BDBHAVirtualHostNodeRestTest.testIntruderProtection.txt
>
>
> The failure of test BDBHAVirtualHostNodeRestTest.testIntruderProtection reviled  that
BDB HA VHN close could be delayed by REF close waiting for state change executor shutdown
 when change executor shutdown is performing task for state change event.
> On state change state change executor invokes BDBHAVirtualHostNodeImpl.EnvironmentStateChangeListener#stateChange
and waits for operation to finish. If operation invokes configuration thread to do the work
and waits for its finish and,  at the same time when, REF#close is performed in config-thread,
for example, because of intruder protection, the two threads block each other.
> Config thread performing in REF#close() is waiting for state change thread  to finish
and state change thread is waiting for config thread to finish submitted state change task.



--
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


Mime
View raw message