Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1090371

Summary: [QE] (6.2.x) ironjacamar transient bad deployment
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Pavel Jelinek <pjelinek>
Component: JCAAssignee: Martin Simka <msimka>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: low Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.1, 6.2.2CC: pkremens
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1057207 Environment:
RHEL
Last Closed: 2014-09-03 11:13:34 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: 1057207    
Bug Blocks:    

Description Pavel Jelinek 2014-04-23 07:59:59 UTC
+++ This bug was initially created as a clone of Bug #1057207 +++

There is a strange deployment issue happening sometimes running EAP test suite. For example with IronJacamarDeploymentTestCase. Basically arquillian fails on deploying the test rar when it tries to read the resource through management API (attaching surefire report file).
What I could find out is that sometimes the server reports in the log that the deployment is successfully performed but listing deployments through cli or management API does not show them. Not sure it is a problem with ironjacamar, but we saw such issue only with it.

To understand what's going on, I modified the deploy() method from CommonDeployableContainer to block execution when such situation occurs(i.e. when getProtocolMetaData() throws). Connecting to server with cli in this state also does not list the ij.rar deployment. That rules out the possibility that it just needs some more time. Funnily the last line of server log is:
>  10:51:18,156 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018559: Deployed "ij.rar" (runtime-name : "ij.rar")

and in debug mode, the next line caused by the attempt to read the management resource is:
> 10:51:18,160 DEBUG [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014616: Operation ("read-resource") failed - address: ([("deployment" => "ij.rar")]) - failure description: "JBAS014807: Management resource '[(\"deployment\" => \"ij.rar\")]' not found"

The issue can be reproduced if you run the test case 2 or 3 hundred times. I got it around 1% of the runs on a descent multicore physical machine if that matters. For convenience pasting a sample such loop here:
> for i in `seq 101 400`; do
>     ./integration-tests.sh -Dts.basic -Dpublic-repos -Dmaven.test.failure.ignore=true -fae -Dsurefire.forked.process.timeout=3600000 -Dmcast=230.5.6.7 -Dtest=IronJacamarDeploymentTestCase |& tee run.$i.log;
>     mv testsuite/integration/basic/target testsuite/integration/basic/target.$i;
> done

It may look as a small percentage but in QE we are running the TS hundreds of times and in a matrix job with 12 variants, it seems always a few of them get it wrong. So reproducibility depends on environment.

P.S. I could not reproduce the issue outside the EAP test suite deploying and undeploying the archives as used in the test suite thousands of times. So this issue looks like possibly related: https://issues.jboss.org/browse/WFLY-1701

--- Additional comment from Aleksandar Kostadinov on 2014-01-23 11:00:20 EST ---



--- Additional comment from Aleksandar Kostadinov on 2014-01-23 11:13:40 EST ---



--- Additional comment from Aleksandar Kostadinov on 2014-01-23 11:19:08 EST ---

Notice that the log from the good run is shorter because on the bad run, test execution was stopped for the night and server logged a lot of debug messages until I stopped it the next day.

--- Additional comment from Aleksandar Kostadinov on 2014-01-23 11:24:13 EST ---



--- Additional comment from Aleksandar Kostadinov on 2014-01-23 11:25:18 EST ---

attaching arquillian-service.jar and ij.rar as deployed by the test suite if that can help

Comment 1 Jesper Pedersen 2014-09-02 19:56:04 UTC
Martin, feel free to look at this - or close.

Comment 2 Martin Simka 2014-09-03 11:13:34 UTC
Not seen in last test cycles, most likely resolved in bug 984855