dev@glassfish.java.net

Re: Random QL cluster test failure?

From: John Wells <john.wells_at_oracle.com>
Date: Mon, 17 Jun 2013 08:08:49 -0400

Is there anything in the server logs?

On 6/17/2013 7:59 AM, Sahoo wrote:
> I just noticed the following failure which went away when I ran the
> test again. Is this a known issue? This is with a recent gtf trunk build.
>
>>
>> [testng]
>> [testng] ######### FAILURE #########
>> [testng] asadmin --host localhost --port 4848 --interactive=false
>> --echo=true --terse=true start-local-instance --verbose=false
>> --watchdog=false --debug=false --dry-run=false --sync normal eein2
>> [testng]
>> [testng]
>> [testng] Waiting for 5 sec...
>> [testng] ######### FAILURE #########
>> [testng] asadmin --host localhost --port 4848 --user admin
>> --interactive=false --echo=true --terse=true list-instances
>> --long=false --timeoutmsec 60000 --standaloneonly=false --nostatus=false
>> [testng] eein1-with-a-very-very-very-long-name running
>> [testng] eein2 not running
>> [testng]
>> [testng]
>> [testng] PASSED: createClusterTest
>> [testng] PASSED: createInstanceTest
>> [testng] FAILED: startInstanceTest
>> [testng] java.lang.AssertionError: Start instance failed ...
>> expected:<true> but was:<false>
>> [testng] at
>> test.clustersetup.ClusterSetupTest.startInstanceTest(ClusterSetupTest.java:99)
>> [testng] ... Removed 26 stack frames
>> [testng]
>> [testng] ===============================================
>> [testng] cluster_setup
>> [testng] Tests run: 3, Failures: 1, Skips: 0
>> [testng] ===============================================
>> [testng]
>> [testng] Wait extra 5 sec for GF to generate helloworld app.
>> [testng] ######### FAILURE #########
>> [testng] asadmin --host localhost --port 4848 --user admin
>> --interactive=false --echo=true --terse=true deploy --force=false
>> --precompilejsp=false --verify=false --generatermistubs=false
>> --availabilityenabled=false --asyncreplication=true --target eec1
>> --keepreposdir=false --keepfailedstubs=false --isredeploy=false
>> --logreportederrors=true --_classicstyle=false
>> /space/ss141213/WS/gf/trunk/appserver/tests/quicklook/dist/hellocluster/helloworld.war
>> [testng] Application deployed with name helloworld.
>> [testng] Warning: Instance eein2 seems to be offline; command
>> _deploy was not replicated to that instance
>> [testng]
>> [testng]
>> [testng] PASSED: clusterDeployTest
>> [testng] FAILED: clusterHelloWorldTest
>> [testng] java.lang.AssertionError: Accessing helloworld page
>> failed ... expected:<true> but was:<false>
>> [testng] at
>> test.hellocluster.ClusterHelloworldTest.clusterHelloWorldTest(ClusterHelloworldTest.java:83)
>> [testng] ... Removed 26 stack frames
>> [testng] SKIPPED: clusterUnDeployTest
>> [testng]
>> [testng] ===============================================
>> [testng] cluster_helloworld
>> [testng] Tests run: 3, Failures: 1, Skips: 1
>> [testng] ===============================================
>> [testng]
>> [testng] ######### FAILURE #########
>> [testng] FAILED: deleteInstanceTest
>> [testng] java.lang.AssertionError: Error stopping instance eein2:
>> asadmin --host localhost --port 4848 --interactive=false --echo=true
>> --terse=true stop-local-instance --force=true --kill=true eein2
>> [testng] Can not find the process ID of the server. It is
>> supposed to be here:
>> /space/ss141213/WS/gf/trunk/appserver/distributions/glassfish/target/stage/glassfish4/glassfish/nodes/localhost-domain1/eein2/config/pid.prev.
>> Unable to kill the process.
>> [testng] expected:<true> but was:<false>
>> [testng] at
>> test.clusterteardown.ClusterTeardownTest.deleteInstanceTest(ClusterTeardownTest.java:75)
>> [testng] ... Removed 25 stack frames
>> [testng] SKIPPED: deleteClusterTest
>> [testng]
>> [testng] ===============================================
>> [testng] cluster_teardown
>> [testng] Tests run: 2, Failures: 1, Skips: 1
>> [testng] ===============================================
>
> Thanks,
> Sahoo