mirror of
https://github.com/apache/nifi.git
synced 2025-02-06 01:58:32 +00:00
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:
parent
8309747889
commit
76a9f98d7f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user