Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 221278 - Agent Controller gets frozen when executing TPTP JUnit Test under tptp-automation-client
Summary: Agent Controller gets frozen when executing TPTP JUnit Test under tptp-automa...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Jonathan West CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords:
Depends on: 201412 234460
Blocks:
  Show dependency tree
 
Reported: 2008-03-04 04:26 EST by Martin Hrdlicka CLA
Modified: 2016-05-05 10:53 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Hrdlicka CLA 2008-03-04 04:26:33 EST
Standalone Agent Controller gets frozen when cyclically executing TPTP JUnit Test using command line tptp-automation-client. The execution gets frozen regularly at 38th repetition. Assumption is that the ACServer is launched right before tests (without any relict interfering java processes).

System under test
TPTP JUnit Test created using wizard with defined one simple Test Method and its invocation in Behavior.

SUT is executed cyclically from shell by following statement (note -cp stated incomplete):
java -cp tptp-automation-client.jar org.eclipse.hyades.automation.client.adapters.shell.AutomationClientAdapter -eclipse c:/Eclipse_SysTests/eclipse -workspace c:/Eclipse_SysTests/tptptestworkspace -project tptptest -suite src/test

Symptoms
SUT console gets frozen after 38th invocation. See last messages:
Test started!
Test 'src/test.testsuite' executing

Agent Controller – as seen its sub processes tree from Windows Process Explorer (for lucidity omitted full paths).

ACServer.exe
  tptpProcessController.exe
     "java.exe" -Dhyades.test.JVM=" java.exe"  org.eclipse.hyades.execution.remote.NodeImpl 9564382

When frozen the java.exe above doesn’t spawn another java process (or it is terminated somehow unexpectedly) as being called under normal circumstances – see below:

"java.exe" -Dhyades.runner.agentName=org.eclipse.hyades.execution.harness.XMLExecutionDataProcessor -Dhyades.loadtest.nusers=0 -Dhyades.runner.testClass=tests.test -Dhyades.runner.testID=E2F4DCD918314C8B57467A00E6C311DC org.eclipse.hyades.test.java.runner.HyadesJUnitRunner

Note: Inspection of ACServer log shows following messages:
"Error writing to socket while sending message to client" – 28 occurrences
"Agent not found RemoteSession 
" – 76 occurrences

The freezing behavior was experienced on Windows as well as on Linux.
Comment 1 Jonathan West CLA 2008-03-26 12:37:03 EDT
Symptoms are the same as those of bug 201412.
Comment 2 Jonathan West CLA 2008-05-13 20:12:22 EDT
When running this test, after 35 or so tests I see the following message:

"org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution Harness reported the following problems: IWAT0005E The host localhost was not found."

Martin, is this what you're seeing as well? 
Comment 3 Martin Hrdlicka CLA 2008-05-14 06:08:28 EDT
It just gets frozen without any other messages.
Comment 4 Jonathan West CLA 2008-05-28 15:51:49 EDT
The behaviour we're seeing is caused by bug 234460. With a corrected hashtable implementation, I am able to run many tests from the command line without putting the agent controller into its bad state.
Comment 5 jkubasta CLA 2008-06-03 09:12:41 EDT
Resolving as fixed now that the patch for bug 234460 has been applied to Head. Please confirm with build TPTP-4.5.0-200806021039 or later.
Comment 6 Paul Slauenwhite CLA 2009-06-30 12:12:31 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.