In classImplementerThreadMain(), poll() was invoked with timeout of 2 seconds.
The test uses that timeout to stop the thread (i.e stopping the thread when there's no callback in 2 seconds).
But that also causes:
The testcase fails if pbe takes more than 2 seconds to dump. The while() loop stops after 2 seconds but then it fails to release the implementer name as the ccb is still active.
The testcase is slow because it has to wait for 2 seconds to stop the thread.
2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Create of class TestClassConfig is PERSISTENT. 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Create of class TestClassRuntime is PERSISTENT. 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Ccb 4925 COMMITTED (startup) 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Ccb 4926 COMMITTED (om_setup) 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Ccb 4927 COMMITTED (om_setup) 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO Implementer connected: 312 (classImplementerThreadMain) <1170, 2020f> 2016-08-02 21:45:43 SC-2 osafimmnd[437]: NO implementer for class 'TestClassConfig' is classImplementerThreadMain => class extent is safe. 2016-08-02 21:45:46 SC-2 osafimmnd[437]: NO ERR_BUSY: ccb 4928 is active on object Obj1,rdn=root of class TestClassConfig. Can not release class implementer 2016-08-02 21:45:46 SC-2 osafimmnd[437]: NO Implementer locally disconnected. Marking it as doomed 312 <1170, 2020f> (classImplementerThreadMain) 2016-08-02 21:45:46 SC-2 osafimmnd[437]: WA CCB 4928 is in critical state, can not abort 2016-08-02 21:45:46 SC-2 osafimmnd[437]: WA Will not terminate ccb 4928 in critical state
default(5.2) [staging:e5f162]
changeset: 8020:e5f162184bbd
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Aug 26 13:29:26 2016 +0700
summary: imm: Remove the poll timeout in IMM testcases [#1970]
opensaf-5.1.x [staging:68b29a]
changeset: 8021:68b29ac33324
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Aug 26 13:29:26 2016 +0700
summary: imm: Remove the poll timeout in IMM testcases [#1970]
opensaf-5.0.x [staging:2139f3]
changeset: 8022:2139f3e6b37b
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Aug 26 13:29:26 2016 +0700
summary: imm: Remove the poll timeout in IMM testcases [#1970]
opensaf-4.7.x [staging:eef359]
changeset: 8023:eef3593c3597
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Aug 26 13:29:26 2016 +0700
summary: imm: Remove the poll timeout in IMM testcases [#1970]
Related
Commit: [2139f3]
Commit: [68b29a]
Commit: [e5f162]
Commit: [eef359]
Tickets:
#1970