[ 
https://issues.apache.org/jira/browse/FLINK-40777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martijn Visser resolved FLINK-40777.
------------------------------------
    Fix Version/s: jdbc-5.0.0
       Resolution: Fixed

Fixed in apache/flink-connector-jdbc:main 
fe8c4e09b646092ab22579e40f1b3349b4fac610

> Run the XA connection tests against PostgreSQL
> ----------------------------------------------
>
>                 Key: FLINK-40777
>                 URL: https://issues.apache.org/jira/browse/FLINK-40777
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Connectors / JDBC
>            Reporter: Martijn Visser
>            Assignee: Martijn Visser
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: jdbc-5.0.0
>
>
> SimpleXaConnectionProviderTest and TransactionIdConnectionTest are the only 
> tests that commit a prepared XA transaction from a new connection, which is 
> what the exactly-once committer and recovery rely on. Both run only on 
> embedded Derby. FLINK-40730 replaces Derby with H2, and H2 discards a 
> prepared transaction as soon as the connection that prepared it closes, so 
> these tests cannot move there.
> This ticket makes them database-agnostic, runs them on PostgreSQL (the test 
> container already sets max_prepared_transactions), adds a recover() test, and 
> moves the XA_RDONLY case to a unit test: H2 never returns it, and the 
> PostgreSQL driver returns it only for read-only connections, which the 
> connector never opens.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to