mirror of https://github.com/apache/activemq.git
Attempt to resolve high CPU usage after error by ensuring that the transport is disposed along with the fire of the local error.
This commit is contained in:
parent
b52796f794
commit
a3c8bee1f0
|
@ -348,7 +348,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
||||||
try {
|
try {
|
||||||
remoteBrokerInfo = futureRemoteBrokerInfo.get();
|
remoteBrokerInfo = futureRemoteBrokerInfo.get();
|
||||||
if (remoteBrokerInfo == null) {
|
if (remoteBrokerInfo == null) {
|
||||||
fireBridgeFailed(new Throwable("remoteBrokerInfo is null"));
|
serviceLocalException(new Throwable("remoteBrokerInfo is null"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -359,7 +359,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
||||||
try {
|
try {
|
||||||
localBrokerInfo = futureLocalBrokerInfo.get();
|
localBrokerInfo = futureLocalBrokerInfo.get();
|
||||||
if (localBrokerInfo == null) {
|
if (localBrokerInfo == null) {
|
||||||
fireBridgeFailed(new Throwable("localBrokerInfo is null"));
|
serviceLocalException(new Throwable("localBrokerInfo is null"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue