mirror of
https://github.com/apache/activemq.git
synced 2025-02-28 21:29:12 +00:00
https://issues.apache.org/jira/browse/AMQ-3542 - prevent failover reconnect till start is initiated, prevents connection establishment w/o a listener which ensures a bridge is already ready to handle a response and start a local bridge, useDedicatedTaskRunner=true can lead to this case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1186654 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1250163f39
commit
f4e0725420
@ -124,6 +124,9 @@ public class FailoverTransport implements CompositeTransport {
|
|||||||
reconnectTask = DefaultThreadPools.getDefaultTaskRunnerFactory().createTaskRunner(new Task() {
|
reconnectTask = DefaultThreadPools.getDefaultTaskRunnerFactory().createTaskRunner(new Task() {
|
||||||
public boolean iterate() {
|
public boolean iterate() {
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
|
if (!started) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
boolean buildBackup = true;
|
boolean buildBackup = true;
|
||||||
synchronized (backupMutex) {
|
synchronized (backupMutex) {
|
||||||
if ((connectedTransport.get() == null || doRebalance) && !disposed) {
|
if ((connectedTransport.get() == null || doRebalance) && !disposed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user