Bug 1165700

Summary: Transactions log store probe fails with JDK1.8
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Hayk Hovsepyan <hhovsepy>
Component: Transaction ManagerAssignee: Michael <mmusgrov>
Status: CLOSED CURRENTRELEASE QA Contact: Hayk Hovsepyan <hhovsepy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: cdewolf, hhovsepy, istudens, kkhan, ochaloup, tom.jenkinson
Target Milestone: DR12   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1170567 (view as bug list) Environment:
Last Closed: 2019-08-19 12:41:12 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:
Bug Depends On:    
Bug Blocks: 1104190, 1167917, 1170567    
Attachments:
Description Flags
probelog.txt
none
tx-object-store-after1st
none
tx-object-store-final none

Description Hayk Hovsepyan 2014-11-19 14:10:56 UTC
Created attachment 958970 [details]
probelog.txt

Description of problem:
When there is TX log in log store, transaction's log store probe action fails with exception: attached probelog.txt


Version-Release number of selected component (if applicable):
EAP 6.4.0.DR10

How reproducible:
While running ToolingCMRTestCase scenarios on JDK1.8 it starts failing starting with second scenario. When only one scenario is run, it always passes.

Steps to Reproduce:
1. Transaction with TestXAResource and CMR Resource.
2. Crash the server at phase2Commit phase entry on BasicAction.
3. Reboot the server and block periodic recovery.
4. Call "probe log" for transaction's log store. You will see that it will fail.

Comment 3 Michael 2014-11-20 16:35:09 UTC
I am unable to duplicate your issue since all of the tests fail with: AssertionError: Expects two participants of the tx expected:<2> but was:<0> which is different from the error mentioned in this BZ.

These tests are quite complicated to understand so could you simplify the test case as follows: Instead of multiple runs of the server could you take a copy of the data/tx-object-store directory during the final server run and after running the first test. The test case would then be a single test and would not require the presence of state left over from a previous test in order for the error to manifest.

Comment 4 Hayk Hovsepyan 2014-11-20 17:04:36 UTC
Created attachment 959445 [details]
tx-object-store-after1st

Comment 5 Hayk Hovsepyan 2014-11-20 17:05:03 UTC
Created attachment 959446 [details]
tx-object-store-final

Comment 6 Hayk Hovsepyan 2014-11-20 17:08:27 UTC
I have attached "tx-object-store" content adter the run of first test case, and after the run of second (failed) test case.

Comment 7 JBoss JIRA Server 2014-11-26 10:31:17 UTC
Michael Musgrove <mmusgrov> updated the status of jira JBTM-2302 to Resolved

Comment 8 tom.jenkinson 2014-11-26 16:35:13 UTC
Hi Hayk,

Please can you update me when you have checked Mikes fix - I will do the release then - thanks!

Tom

Comment 9 Hayk Hovsepyan 2014-11-26 17:14:49 UTC
Hi Tom,

I have checked Mike's fix locally on jdk1.8.0_11 and it worked.
All Tooling tests were passed.

Thanks,
Hayk.

Comment 10 tom.jenkinson 2014-11-26 17:25:53 UTC
Thanks Hayk - I will merge and release in the morning

Comment 17 Hayk Hovsepyan 2014-12-04 18:54:10 UTC
Verified on revision EAP 6.4.0.DR12

Comment 18 JBoss JIRA Server 2014-12-11 15:54:05 UTC
Tom Jenkinson <tom.jenkinson> updated the status of jira JBTM-2302 to Closed