Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WFTC-61] the connection failures are intermittent and should be thrown as RMFAIL #73

Merged

Conversation

ochaloup
Copy link
Contributor

@ochaloup ochaloup commented Apr 5, 2019

...and should be announced as such to transaction manager

https://issues.jboss.org/browse/WFTC-61
https://issues.jboss.org/browse/WFLY-11937

@fl4via @tadamski this fix changes the error codes from XAER_RMERR to XAER_RMFAIL when IOException is received from the remote call. The failed remote call means that the action could be repeated to find out the outcome of the transaction. The RMERR defines an un-recoverable error and in such case the transaction is moved to heuristic and operator needs to do manual change.

I did the change not only for the BlockingInvocation.Response response = invocation.getResponse() but for the code at // write rollback-only request. I think it's correct to be changed there as well but if you can @fl4via take a look to confirm I would be grateful.

@ochaloup ochaloup force-pushed the WFTC-61-xaer-rmfail-for-io-exceptions branch from 1634ce8 to 6f97244 Compare April 5, 2019 07:27
…be used

RMFAIL announces to transaction manager that the work could be retried
@ochaloup ochaloup force-pushed the WFTC-61-xaer-rmfail-for-io-exceptions branch from 6f97244 to e1448a4 Compare April 5, 2019 07:32
@ochaloup
Copy link
Contributor Author

ochaloup commented Apr 9, 2019

@fl4via @dmlloyd do you think this is reasonable and it could be merged?

Copy link
Member

@dmlloyd dmlloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine to me. If @fl4via is OK with it then let's merge.

@fl4via
Copy link
Contributor

fl4via commented Apr 16, 2019

@dmlloyd yes, this is okay to merge

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants