-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDBC Object Store is not working with a datasource which is using the default transaction setting #33739
Comments
@mmusgrov I suppose only |
Anyway, I file https://issues.redhat.com/browse/AG-209 |
@zhfeng Yes that's correct, a transaction is active when it is in the state Coincidentally we had a long discussion on this topic in the Eclipse |
Thanks @mmusgrov and it was a interesting discussion about this |
@mmusgrov I raise agroal/agroal#70 and would you like to take a review? It seems that |
@yrodiere I just wonder if it is better to update the transaction document with this know issue since it looks like we need more investigation both on |
I agree if an extra configuration property is necessary for things to work right now, it should be mentioned in the documentation. |
AG-209 - fixed with #39072 |
Describe the bug
I'm testing the camel-quarkus jta-jpa example by using the JDBC Object Store with following configurations:
It throws a Exception when doing commit a transaction
I have to add
quarkus.datasource.tslog.jdbc.transactions=disabled
to make it working.Expected behavior
It should commit the transaction when using JDBC object store.
Actual behavior
The exception is throwing and transaction is not committed.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
The potenial issue could be a difference of checking a transaction is running between
narayana
andagroal
.On narayana side:
https://github.com/jbosstm/narayana/blob/main/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/transaction/arjunacore/TransactionSynchronizationRegistryImple.java#L226-L229
On agroal side:
https://github.com/agroal/agroal/blob/master/agroal-narayana/src/main/java/io/agroal/narayana/NarayanaTransactionIntegration.java#L119-L121
Then when writing a transaction log through a jdbc connection in the
COMMITTING
phase,agroal
thinks the transaction is running butnarayana
does not.The text was updated successfully, but these errors were encountered: