Commit c1a7d910 authored by József Gyürüsi's avatar József Gyürüsi
Browse files

[incident #1969069] CLL: titansim startup fail (Error: EPTF_Var: EPTF_Var[-1] has invalid content)


  HostAdmin: f_EPTF_HostAdminServer_getOrStartClient subscribe moved to end of function
    => all local vars exist when pdu.hostStat is received from remote before subscribeRemote finishes

Change-Id: Ida9cfb258325ae89c2208d1db0264ed74bb1f7cc
Signed-off-by: József Gyürüsi's avatarJózsef Gyürüsi <jozsef.gyurusi@ericsson.com>
parent aa940f0e
......@@ -281,12 +281,6 @@ return integer
0.0,
v_EPTF_HostAdmin_hostDB.hosts[vl_idx].hostStats.cpuAvg);
f_EPTF_Var_setSubsCanAdjust(v_EPTF_HostAdmin_hostDB.hosts[vl_idx].hostStats.cpuAvg,false);
f_EPTF_Var_subscribeRemote(
pl_remoteCompRef := v_EPTF_HostAdmin_hostDB.hosts[vl_idx].compRef,
pl_remoteProviderVarName := vl_remoteSelfName & "." & c_EPTF_HostAdmin_resetMinMaxAvgCPULoad_name,
pl_subscriptionMode := realtime,
pl_idx := v_EPTF_HostAdmin_hostDB.hosts[vl_idx].hostStats.rstMinMaxAvg,
pl_localName := vl_prefix & c_HostAdminServer_dataElementResetMinMaxAvgCPULoad);
f_EPTF_Var_newCharstringlist(
vl_prefix & c_HostAdminServer_iteratorCpus_varName,
{},
......@@ -296,6 +290,12 @@ return integer
vl_prefix & c_HostAdminServer_iteratorProcessesOnHost_varName,
{},
v_EPTF_HostAdmin_hostDB.hosts[vl_idx].iteratorVarProcesses);
f_EPTF_Var_subscribeRemote(
pl_remoteCompRef := v_EPTF_HostAdmin_hostDB.hosts[vl_idx].compRef,
pl_remoteProviderVarName := vl_remoteSelfName & "." & c_EPTF_HostAdmin_resetMinMaxAvgCPULoad_name,
pl_subscriptionMode := realtime,
pl_idx := v_EPTF_HostAdmin_hostDB.hosts[vl_idx].hostStats.rstMinMaxAvg,
pl_localName := vl_prefix & c_HostAdminServer_dataElementResetMinMaxAvgCPULoad);
}
return vl_idx;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment