Menu

#1970 imm: immoitest testsuite 4 fails when CCB takes more than 2 seconds to commit

4.7.2
fixed
None
defect
imm
tests
major
2016-09-08
2016-08-25
Hung Nguyen
No

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 

Related

Tickets: #1970
Wiki: ChangeLog-4.7.2
Wiki: ChangeLog-5.0.1

Discussion

  • Hung Nguyen

    Hung Nguyen - 2016-08-28
    • status: accepted --> review
     
  • Hung Nguyen

    Hung Nguyen - 2016-09-08
    • status: review --> fixed
     

Log in to post a comment.