[jbossts-issues] [JBoss JIRA] (JBTM-3070) Quickstart for transaction driver should not be using reflection

Ondra Chaloupka (Jira) issues at jboss.org
Fri Oct 19 07:48:00 EDT 2018


     [ https://issues.jboss.org/browse/JBTM-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondra Chaloupka updated JBTM-3070:
----------------------------------
    Summary: Quickstart for transaction driver should not be using reflection  (was: Quickstart for transaction driver should not use reflection)


> Quickstart for transaction driver should not be using reflection
> ----------------------------------------------------------------
>
>                 Key: JBTM-3070
>                 URL: https://issues.jboss.org/browse/JBTM-3070
>             Project: JBoss Transaction Manager
>          Issue Type: Enhancement
>            Reporter: Ondra Chaloupka
>            Assignee: Ondra Chaloupka
>            Priority: Minor
>
> Currently the quickstart of transaction driver standalone uses reflection for forcibly closing H2 connection. It was used as a way to overcome the H2 issues with XA connection.
> As the quickstart tests recovery it arbitrary throws an exception. This makes issue for H2 as it consider the connection as unfinished but if we close it it does not care and sets autocommit to true and let all the changes being immediately propagated to database.
> That's what we don't want as we test recovery and we expect recovery to finish the in-doubt data.
> The issue is only for H2 behaviour. "Normal" databases as PostgreSQL makes checks on unfinished transaction in jdbc driver and their decisions are based on it.
> Nevertheless using reflection is not a good habit and it's a hacky. For quickstarts it should not be the case. There needs to be a way how to avoid it.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbossts-issues mailing list