[AMQ-4082] - ensure masked exception is report in the log on missing broker info from local or remote transports

This commit is contained in:
gtully 2016-11-15 13:23:54 +00:00
parent 105128a92d
commit 2537266740
1 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
@Override
public void onException(IOException error) {
if (!futureLocalBrokerInfo.isDone()) {
LOG.info("error with pending local brokerInfo on: " + localBroker, error);
futureLocalBrokerInfo.cancel(true);
return;
}
@ -239,6 +240,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
@Override
public void onException(IOException error) {
if (!futureRemoteBrokerInfo.isDone()) {
LOG.info("error with pending remote brokerInfo on: " + remoteBroker, error);
futureRemoteBrokerInfo.cancel(true);
return;
}