-
Notifications
You must be signed in to change notification settings - Fork 42
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
Redesign DataSourceXAResourceRecoveryHelper to be compatible with JBTM-3879 (based on org.jboss.narayana.jta.jms.JmsXAResourceRecoveryHelper) #149
Conversation
…M-3879 (based on org.jboss.narayana.jta.jms.JmsXAResourceRecoveryHelper)
Hi @geoand, this adjusted version of FYI @marcosgopen |
So do we want to merge this? |
Well, I think the implementation is better than the current one, and it is needed if upgrading to newer Narayana versions should be possible. ;) |
cc @mmusgrov |
Thanks @graben for your PR, it is greatly appreciated! Could you double check the PooledTransactionalIT test? It keeps failing with 7.0.2.Final: ''[ERROR] Errors: [UPDATE] the PooledRecoveryIT test fails with Narayana 7.0.2.Final. That is because of another issue (see https://issues.redhat.com/browse/JBTM-3838). In fact now Narayana is not treating XAER_RMFAIL as a transient failure and would consider it a heuristic aligning to xa_rollback specification (https://publications.opengroup.org/c193) From the test log you can read: "WARN 170836 --- [nsaction Reaper] com.arjuna.ats.arjuna : ARJUNA012117: TransactionReaper::check processing TX 0:ffffc0a82b22:a64d:66840d2a:1e in state RUN" This is a issue that might have already been solved by Artemis team (maybe apache/activemq-artemis@269be13c5a). FYI @graben @tomjenkinson |
I got a failure after git cloning https://github.com/snowdrop/narayana-spring-boot and typing
and my env is
and it similarly fails running just the relevant test case:
although the actual test passes:
|
Thank you for providing the summary @marcosgopen |
@mmusgrov FYI the CI steps for snowdrop/narayana-spring-boot (which might give a hint as to how it's meant to run at least in one permutation) are in https://github.com/snowdrop/narayana-spring-boot/blob/main/.github/workflows/test.yml#L23 |
@marcosgopen the two CI runs at this time seem to be successful - are you saying you consider it should be considered failing due to the WARN? |
Hi @marcosgopen, the pooled test fails because of an issue in H2 database. I'm actually waiting for an enhancement to Agroal agroal/agroal#109 actually under review by @barreiro to do a proper workaround for this. The pooled test is not affected by this change. The helper is only used by non-pooled connections. |
(sorry @marcosgopen now I see this is not upgrading to 7.0.2.Final :) ) |
You are right @graben . The pooled test failure is not related to this PR and not related to JBTM-3879 (XA recovery scan cursor handling). |
Yes and no. The change in Narayana by JBTM-3879 is causing that the first workaround for H2 is not working any more. It's a bit complicated and confusing that changes in several projects are causing "strange" behaviours. It's keeping me busy. :-D |
Why calling |
@marcosgopen : Can you please make a review of this change set from a Narayana perspective. I think the guys able to merge will need expert advice. Thx! |
@geoand: Hope to get positive feedback by @marcosgopen soon, to get this merged. |
Would anyone be able to share an easy way to run PooledRecoveryIT in a debugger, please? |
I would run ' mvn -Dmaven.failsafe.debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:8000" install -Dit.test=PooledRecoveryIT' from the narayana-spring-boot-starter-it folder |
I am checking the PR. Do you @graben have any updates about the Agroal/H2 workaround you mentioned above? |
Thank you @marcosgopen ! A few other things that might be relevant to share are to consider adding Thank you again - debugging is working. |
Has been merged right now by Luis. |
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.
Thanks @graben for your PR! I am glad that the Agroal fix is now merged.
Thanks again for your support.
Hi @geoand, may you be able to merge this? |
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.
Thanks!
Let us know when you need a new release - cc @jacobdotcosta |
I'll do, but I think there will come an Agroal and Narayana release update before that. ;) |
@tomjenkinson and @graben thanks for your suggestions related to resolving my build issue. |
Works with actual Narayana 7.0.1 release and Narayana 7.0.2 (including JBTM-3879) #jbosstm/narayana/pull/2268