Thanks for your response. Did you check the attached log? Do you find and evidence that the bug you mentioned is the root cause of the problem we encountered?
Unfortunately it was only in the debugger that we found the issue (i.e. there wasn't enough trace logging to debug it at the time). I can say your report is consistent with that Jira I referenced. I did notice that a LastResourceRecord is in play indicating you aren't using an XA datasource for the database - for me, I would see this as an issue if you are expecting 2PC but is not the cause of your reported issue.