-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support Transaction Manager Recovery #71
Conversation
gastaldi
commented
Nov 10, 2023
- This registers the Managed Connection Factory to the Recovery service if enabled.
- Also added config options for the recovery credentials
@jhalliday can you please take a look if this makes sense? |
@vsevel in case you have recovery enabled, can you test with this PR if the transaction is correctly recovered in case of a server crash? |
no. we do not have recovery enabled. |
@gastaldi I add a crash recovery test https://github.com/zhfeng/jca-recovery-test. Only test it on JVM mode.
and you will get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll do a minor refactoring before merging this PR |
@gastaldi I have some changes to add a property to disable passing |
Is there any chance to add it? |
@zhfeng Interesting, but it doesn't make much sense to me TBH. Can you elaborate on why this is needed? |
Well, when we did a test with DTPRA (which is used to connect to the mainframe system), it would use |
I see. The best solution in this case IMHO is to change the DTPRA adapter to ignore that (maybe through a flag in the adapter), not the extension. |
Refactoring done. @zhfeng can you review it before this gets merged? |
runtime/src/main/java/io/quarkiverse/ironjacamar/runtime/TransactionRecoveryManager.java
Show resolved
Hide resolved
- This registers the Managed Connection Factory to the Recovery service if enabled. - Also added config options for the recovery credentials
I think we're now ready for a 1.1.0 release. @zhfeng Should we add something else? |
Yeah, I think we are good for a new release. The only thing I think is to add a NOTE in docs to emphasis that if running in a XA transacction, it recommend to enable recovery by using |