From a3c8bee1f0696b1d0d9a315b12241eecbf1f2d85 Mon Sep 17 00:00:00 2001 From: Timothy Bish Date: Fri, 7 Aug 2015 16:21:52 -0400 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-5605 Attempt to resolve high CPU usage after error by ensuring that the transport is disposed along with the fire of the local error. --- .../activemq/network/DemandForwardingBridgeSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java b/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java index 8e08f951de..ad6fd61115 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java +++ b/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java @@ -348,7 +348,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br try { remoteBrokerInfo = futureRemoteBrokerInfo.get(); if (remoteBrokerInfo == null) { - fireBridgeFailed(new Throwable("remoteBrokerInfo is null")); + serviceLocalException(new Throwable("remoteBrokerInfo is null")); return; } } catch (Exception e) { @@ -359,7 +359,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br try { localBrokerInfo = futureLocalBrokerInfo.get(); if (localBrokerInfo == null) { - fireBridgeFailed(new Throwable("localBrokerInfo is null")); + serviceLocalException(new Throwable("localBrokerInfo is null")); return; }