Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 126792 - Importing remote log files timeout on 0S/400 V5R4
Summary: Importing remote log files timeout on 0S/400 V5R4
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: Other Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Dave Smith CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 14:58 EST by Thayaparan Shanmugaratnam CLA
Modified: 2016-05-05 10:48 EDT (History)
2 users (show)

See Also:


Attachments
Debug output from RAC native code (2.46 KB, text/plain)
2006-02-22 15:22 EST, Dave Smith CLA
no flags Details
Debug messages from java agent code (194 bytes, text/plain)
2006-02-22 15:26 EST, Dave Smith CLA
no flags Details
Agent Controller log file without debug (73.87 KB, text/plain)
2006-02-22 15:27 EST, Dave Smith CLA
no flags Details
Agent Controller log file with debug (785.09 KB, text/plain)
2006-02-22 15:30 EST, Dave Smith CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thayaparan Shanmugaratnam CLA 2006-02-07 14:58:34 EST
Build: 
TPTP 4.2.0

To Reproduce:
1) Install 4.2.0 on OS/400 V5R4
2) Install 4.2.0 workbench on either Linux or Windows
3) Import the servicelog.log file from <rac_install>/config/servicelog.log

Note:
I did not notice this problem on Windows, or Linux_PPC64
Comment 1 Dave Smith CLA 2006-02-08 23:33:00 EST
This is a serious problem.  The import is failing consistently.
Comment 2 Dave Smith CLA 2006-02-21 18:29:15 EST
I have debugged this down to the native communication layer code between the RAC and agent.  The agent thread that listens on the agent pipe for messages from the RAC is hung trying to attach to the Java VM in order to call some java methods on the RemoteComponentSkeleton object for the agent.  The AttachCurrentThread call is made in _java_notifyMessage in hcjbind.c when handling the RA_AGENT_CONTROLER_AVAILABLE command.  Note, this is the first time that it is called.  The native stack at this point looks like:

_java_notifyMessage (hcjbind.c)
messageLoop (RABindings.c)
PipeServer (RABindings.c)

This problem does not occur when profiling on this system and log import works on other iSeries systems running at older OS levels (eg. V5R3).
Comment 3 Dave Smith CLA 2006-02-21 18:33:33 EST
This is a Platform problem either in the underlying agent code or in the RAC native communication layer.
Comment 4 Dave Smith CLA 2006-02-22 12:21:37 EST
PMC approved deferring this to iteration 2 because it is a new O/S level of iSeries for this release and the problem does not occur on older versions of O/S so it won't block existing testcases.
Comment 5 Dave Smith CLA 2006-02-22 15:22:19 EST
Created attachment 35180 [details]
Debug output from RAC native code

This file contains debug messages from collection/framework/RABindings/RABindings.c and collection/collectors/java/hcjbnd.c
Comment 6 Dave Smith CLA 2006-02-22 15:26:18 EST
Created attachment 35182 [details]
Debug messages from java agent code

Debug output from org.eclipse.hyades.internal.execution.remote.reRemoteComponentSkeleton agent class.
Comment 7 Dave Smith CLA 2006-02-22 15:27:57 EST
Created attachment 35184 [details]
Agent Controller log file without debug

Agent Controller log file without debug for log import scenario that corresponds to the logAgent and rsc debug files.
Comment 8 Dave Smith CLA 2006-02-22 15:30:11 EST
Created attachment 35185 [details]
Agent Controller log file with debug

Agent Controller log file with debug - this shows example of output for profiling which works and log import which does not work.
Comment 9 Dave Smith CLA 2006-02-22 15:34:38 EST
The debug file from the Agent Controller communication layer code shows where the hang occurs.  For example:

hcjbnd:  Java Log Agent: notifyMessage: Received message RA_AGENT_CONTROLER_AVAILABLE - about to attach to VM in current thread using VM pointer SPP:0000 :0000 :0:0:2
Comment 10 Dave Smith CLA 2006-03-31 10:47:38 EST
Deferring this to i3 with approval of Platform project lead.  Also reducing severity to major because testing can proceed on older versions of OS/400.
Comment 11 Dave Smith CLA 2006-06-05 12:09:50 EDT
Will test this on another V5R4 system to see if the problem is consistently failing.
Comment 12 Dave Smith CLA 2006-06-05 15:21:58 EDT
Thay has confirmed this problem does not exist on on another iSeries V4R5 system and the system where the original problem was reported has been reconfigured so the problem cannot be reproduced.   However, a potential problem we discovered is that the pluginconfig.xml for org.eclipse.hyades.logging.parsers includes an application definition for RemoteLogParserLoader and hardcode's the "-Djava.version=1.4" JVM argument that forces the 1.4 JVM to be used on iSeries.  On the sytem where the problem was encountered the default JVM was 1.5 and perhaps the 1.4 JMV was corrupted which caused the problem.  I have opened bugzilla 145412 to add a readme item for this log import timeout problem on V5R4 systems and the workaround is to change the JVM argument in pluginconfig.xml to "-Djava.version=1.5".

We'll close this defect as unreproducible.  If the problem is found again it can be reopened.
Comment 13 Paul Slauenwhite CLA 2009-06-30 12:16:53 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.