NIFI-3531 Catch and rethrow generic Exception to handle RuntimeExceptions, and allow test to pass

This closes #2931.
Signed-off-by: Brandon Devries <devriesb@apache.org>
This commit is contained in:
Mike Moser 2018-09-05 15:49:44 -04:00 committed by Brandon Devries
parent 8309747889
commit 76a9f98d7f

View File

@ -122,7 +122,7 @@ final class JMSConsumer extends JMSWorker {
// and if CLIENT_ACKNOWLEDGE is set.
consumerCallback.accept(response);
acknowledge(message, session);
} catch (JMSException e) {
} catch (Exception e) {
// We need to call recover to ensure that in the event of
// abrupt end or exception the current session will stop message
// delivery and restart with the oldest unacknowledged message