Bug 1029499

Summary: Add a troubleshooting chapter to transactions subsection
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ondrej Chaloupka <ochaloup>
Component: DocumentationAssignee: Russell Dickenson <rdickens>
Status: CLOSED WONTFIX QA Contact: Russell Dickenson <rdickens>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 14874, Administration and Configuration Guide-6.2-1 Build Date: 07-11-2013 09:29:23 Topic ID: 4374-459144 [Specified]
Last Closed: 2013-11-26 22:05:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondrej Chaloupka 2013-11-12 13:51:23 UTC
Title: Transactions Configuration Overview

Hi,

I want to ask for creating a troubleshooting section for Transaction subsystem in documentation. We were solving one bz (https://bugzilla.redhat.com/show_bug.cgi?id=1009981) which causes a log being filled with warning messages.
Information about configuration of the AS server should be documented.

The text came from the bz1009981

Description: 
When machine is under bigger load of the receiving messages there could happen the server log would contain XAException from Periodic Recovery of rollbacking a transaction.
We hit this for HornetQ but this is supposed to happen for any messaging system used under EAP.

The transaction is in fact not rollbacked at all. The commit is done but meanwhile the Periodic Recovery process comes into play. The scenario is described by Tom in the comment:
https://bugzilla.redhat.com/show_bug.cgi?id=1009981#c6

Cause:
The transaction handling and periodic recovery are two independent threads which access a same transaction record. 
The RAR informs periodic recovery about not commited transaction and tries to recover it but meanwhile the RAR procceed with the commit.

Consequence: 
Log could contains XAException which informs about fail to rollback a transaction by Periodic Recovery. But in fact there was no rollback and all messages were correctly received and commited.

Fix: 
There isn't any generic fix possible being done in Narayana code. When the problem occurs it's recommended to increase interval between the two phases of the recovery process. Use property
com.arjuna.ats.jta.orphanSafetyInterval 
at the start of the EAP server and set it to the bigger number than the 10000 milliseconds which is default value.

Result:
Use com.arjuna.ats.jta.orphanSafetyInterval property when problem occurs.

Thank you

Comment 1 Russell Dickenson 2013-11-26 01:19:41 UTC
Attention: Ondrej

I'm not quite sure just what you're asking be added to the Admin & Config Guide. When I read over this BZ ticket and BZ1009981 it looks as if this is something that should be mentioned in the Release Notes. Perhaps I misunderstand and the issue is more complex.

Can you please explain further?

Comment 2 Ondrej Chaloupka 2013-11-26 08:19:06 UTC
Hi Russel,

you are right. This should be put to Release Notes.

My prior intention (or the reason why I asked to add it to config guide) was to inform user about some configuration option that could solve some problems.

But I agree with you that this should be put rather to release notes.

I'm sorry for confusions

Thanks 
Ondra

Comment 3 Ondrej Chaloupka 2013-11-26 13:35:41 UTC
I've slightly changed the doc text in the https://bugzilla.redhat.com/show_bug.cgi?id=1009981

Comment 4 Russell Dickenson 2013-11-26 22:05:52 UTC
I have closed this BZ ticket as Ondrej and I have agreed that a release notes entry is all that is required. The RN entry has been made in the parent of this BZ ticket, BZ1009981.