]
Tom Jenkinson updated JBTM-2879:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
JTS before_completion in SynchronizationImple swallows and hides
exceptions
---------------------------------------------------------------------------
Key: JBTM-2879
URL:
https://issues.jboss.org/browse/JBTM-2879
Project: JBoss Transaction Manager
Issue Type: Enhancement
Components: JTS
Reporter: David Lloyd
Assignee: Ondra Chaloupka
Fix For: 5.5.7.Final, 5.next
In
[
SynchronizationImple|https://github.com/jbosstm/narayana/blob/781ace284d8...],
if the user's synchronization fails, the exception is swallowed and never logged.
Instead a descriptionless {{UNKNOWN}} is thrown.
The exception should at least be logged to aid in troubleshooting.
Later in the same file, {{after_completion}} is using {{e.printStackTrace()}} to log the
stack, which is also less than ideal.