Bug 1095251 - [QE] (6.3.0) Rare fail of org.jboss.as.test.patching.ShowHistoryUnitTestCase due to AssertionError: Patch should be accepted
Summary: [QE] (6.3.0) Rare fail of org.jboss.as.test.patching.ShowHistoryUnitTestCase ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Testsuite
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jan Martiska
QA Contact: Pavel Jelinek
URL:
Whiteboard:
Depends On: 1092392
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-07 11:07 UTC by Pavel Jelinek
Modified: 2014-10-25 12:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-20 15:12:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Jelinek 2014-05-07 11:07:35 UTC
See: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-6x-as-testsuite-RHEL-matrix-openJDK6/121/jdk=openjdk-1.6.0-local,label_exp=RHEL6%26%26x86_64/testReport/junit/org.jboss.as.test.patching/ShowHistoryUnitTestCase/testMain/

Stacktrace

java.lang.AssertionError: Patch should be accepted
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.jboss.as.test.patching.ShowHistoryUnitTestCase.applyPatch(ShowHistoryUnitTestCase.java:311)
	at org.jboss.as.test.patching.ShowHistoryUnitTestCase.applyCP(ShowHistoryUnitTestCase.java:268)
	at org.jboss.as.test.patching.ShowHistoryUnitTestCase.testMain(ShowHistoryUnitTestCase.java:226)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
	at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
	at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
	at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
	at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
	at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
	at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Standard Output

INFO  [org.jboss.as.test.patching.PatchingTestUtil] /tmp/a49421b2-740f-4174-a773-19002cdd829c
  57cac294-b313-43e1-aefe-f754935698d3
    7e4c9fbf-9c22-47bb-9b23-8f1d47015471
      modules
        module-test
          main
            resource-test
            module.xml
    patch.xml


Prepared 57cac294-b313-43e1-aefe-f754935698d3.zip at /tmp/a49421b2-740f-4174-a773-19002cdd829c/57cac294-b313-43e1-aefe-f754935698d3.zip
INFO  [org.jboss.arquillian.container.test.impl.client.container.ClientContainerController] Manual starting of a server instance
INFO  [org.jboss.as.arquillian.container.managed.ManagedDeployableContainer] Starting container with: [/usr/lib/jvm/java-1.6.0-openjdk.x86_64/bin/java, -Xmx512m, -XX:MaxPermSize=256m, -Djboss.dist=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3, -Djava.net.preferIPv4Stack=true, -Djava.net.preferIPv6Addresses=false, -Dts.timeout.factor=100, -Dnode0=10.16.180.177, -Dnode1=10.16.180.175, -Dmcast=227.43.180.232, -Djbossas.ts.submodule.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching, -Djbossas.ts.integ.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/.., -Djbossas.ts.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/../.., -Djbossas.project.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/../../.., -Djboss.dist=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3, -Djboss.inst=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas, -ea, -Djboss.home.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas, -Dorg.jboss.boot.log.file=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas/standalone/log/boot.log, -Dlogging.configuration=file:/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas/standalone/configuration/logging.properties, -Djboss.bundles.dir=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas/bundles, -jar, /qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas/jboss-modules.jar, -mp, /qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml, --admin-only]
[0m00:18:32,862 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final-redhat-1
[0m[0m00:18:33,411 INFO  [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1
[0m[0m00:18:33,573 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015899: JBoss EAP 6.3.0.Beta1 (AS 7.4.0.Final-redhat-11) starting
[0m[0m00:18:35,559 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.9.GA-redhat-1
[0m[0m00:18:35,578 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
[0m[0m00:18:35,580 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.9.GA-redhat-1
[0m[0m00:18:35,634 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version (unknown)
[0m[0m00:18:35,752 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on 10.16.180.177:9999
[0m[0m00:18:35,995 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.16.180.177:9990/management
[0m[0m00:18:35,996 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015954: Admin console is not enabled
[0m[0m00:18:35,996 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.3.0.Beta1 (AS 7.4.0.Final-redhat-11) started in 3782ms - Started 44 of 53 services (20 services are lazy, passive or on-demand)
[0mINFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch apply /tmp/a49421b2-740f-4174-a773-19002cdd829c/57cac294-b313-43e1-aefe-f754935698d3.zip -----
ERROR [org.jboss.as.cli.CommandContext] Conflicts detected: module-test:main
Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict.
INFO  [org.jboss.arquillian.container.test.impl.client.container.ClientContainerController] Manual stopping of a server instance
[0m00:18:36,396 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015950: JBoss EAP 6.3.0.Beta1 (AS 7.4.0.Final-redhat-11) stopped in 18ms
[0mINFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch info --distribution=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas -----
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "cp1",
        "patches" : []
    }
}
INFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch rollback --patch-id=cp1 --distribution=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas --reset-configuration=true -----
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" : "success",
    "result" : {}
}
INFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch info --distribution=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas -----
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : ["oneoff1"]
    }
}
INFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch rollback --patch-id=oneoff1 --distribution=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas --reset-configuration=true -----
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" : "success",
    "result" : {}
}
INFO  [org.jboss.as.test.patching.CliUtilsForPatching] ----- sending command to CLI: patch info --distribution=/qa/hudson_workspace/workspace/eap-6x-as-testsuite-RHEL-matrix-openJDK6/253a0e3b/jboss-eap-6.3-src/testsuite/integration/patching/target/jbossas -----
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : []
    }
}

Comment 1 Pavel Jelinek 2014-05-07 11:18:45 UTC
Just before this test ran the ShowHistoryUnitTestCase.testOneOffAndCP() had ran and failed due to java.io.FileNotFoundException: /qa/services/hudson/.jboss-cli-history (Stale file handle):

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-6x-as-testsuite-RHEL-matrix-openJDK6/121/jdk=openjdk-1.6.0-local,label_exp=RHEL6%26%26x86_64/testReport/junit/org.jboss.as.test.patching/ShowHistoryUnitTestCase/testOneOffAndCP/

Comment 2 Pavel Jelinek 2014-08-20 15:12:05 UTC
This issue has not been reproduced and it is reported against a version which is no longer maintained, which means that it will not receive a fix. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Enterprise Application Platform please feel free to open a bug against that version.


Note You need to log in before you can comment on or make changes to this bug.