This commit is contained in:
Justin Bertram 2021-02-11 20:52:31 -06:00
commit 8ff072a4e8
3 changed files with 6 additions and 5 deletions

View File

@ -570,11 +570,12 @@ public class PagingStoreImpl implements PagingStore {
SequentialFileFactory factory = null;
try {
factory = checkFileFactory();
SequentialFile file = factory.createSequentialFile(fileName);
return file.exists();
} catch (Exception ignored) {
logger.debug("PagingStoreFactory::checkPageFileExists never-throws assumption failed.", ignored);
return false;
}
SequentialFile file = factory.createSequentialFile(fileName);
return file.exists();
}
@Override

View File

@ -405,7 +405,7 @@ public final class ReplicationEndpoint implements ChannelHandler, ActiveMQCompon
}
}
if (this.channel != null && outgoingInterceptors != null) {
if (channel != null && outgoingInterceptors != null) {
if (channel.getConnection() instanceof RemotingConnectionImpl) {
try {
RemotingConnectionImpl impl = (RemotingConnectionImpl) channel.getConnection();

View File

@ -1335,7 +1335,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
try {
securityStore.stop();
} catch (Throwable t) {
ActiveMQServerLogger.LOGGER.errorStoppingComponent(t, managementService.getClass().getName());
ActiveMQServerLogger.LOGGER.errorStoppingComponent(t, securityStore.getClass().getName());
}
}