Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 36 by [email protected]: Diameter stack FSM multithread problem
http://code.google.com/p/jdiameter/issues/detail?id=36

The multi-thread FSM additions cause a race condition where org.jdiameter.server.impl.PeerImpl.java line 115 StatisticRecord[] records = ((IStateMachine) fsm).getStatistic().getRecords();

This occassionally throws a NULL pointer exception as the getStatistic method return null.

A patch is included for org.jdiameter.client.impl.fsm.PeerFSMImpl.java that makes the queue stat variable threadsafe.

What is the expected output? What do you see instead?
Run fine - instead we get a Null pointer exception

What version of the product are you using? On what operating system?
jdiameter 1.40.FINAL and JSLEE 2.7.0.FINAL

Please provide any additional information below.



Attachments:
        FixFSMMultithread_racecondition  20.5 KB

Reply via email to