Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using ThreadGroup and remove references to it #21

Open
brainslog opened this issue Dec 24, 2015 · 6 comments
Open

Stop using ThreadGroup and remove references to it #21

brainslog opened this issue Dec 24, 2015 · 6 comments

Comments

@brainslog
Copy link
Contributor

Using ThreadGroup is not recommended and it has already brought some problems. It's usage should be replaced and references to it (docs, config) removed.

@brainslog brainslog added this to the 1.7.0.FINAL milestone Dec 24, 2015
@xphudin
Copy link

xphudin commented Oct 26, 2016

Hi @brainslog
Should threadgroup be replaced by threadpool?

@brainslog
Copy link
Contributor Author

Hi @xphudin,

Yes, ThreadPool or ExecutorService should be good candidates. What do you think ? Would you be up to contribute on this ? That'd be awesome!

@xphudin
Copy link

xphudin commented Nov 6, 2016

hi @brainslog , I have convert threadgroup into threadpool, unfortunately, I face with failing test with below infomation:
14:20:38,863 DEBUG [PeerTableImpl] Waited 250ms. Time remaining to wait: 500ms. 3 Thread still active.
14:20:39,114 DEBUG [PeerTableImpl] Waited 250ms. Time remaining to wait: 250ms. 3 Thread still active.
14:20:39,364 DEBUG [PeerTableImpl] Waited 250ms. Time remaining to wait: 0ms. 3 Thread still active.
14:20:39,365 INFO StackImpl(-)(-)(-)(-) Stopped Mobicents DIAMETER Stack v1.7.0-SNAPSHOT (-)(-)(-)(-)(-)
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 15.225 sec <<< FAILURE! - in org.mobicents.diameter.stack.functional.cca.base.CCASessionBasicFlowTest
testBasicFlow0 Time elapsed: 6.804 sec <<< FAILURE!
java.lang.AssertionError: java.lang.Exception: Request: null
at org.mobicents.diameter.stack.functional.cca.base.CCASessionBasicFlowTest.testBasicFlow(CCASessionBasicFlowTest.java:157)

testBasicFlow1 Time elapsed: 8.414 sec <<< FAILURE!
java.lang.AssertionError: java.lang.Exception: Request: null
at org.mobicents.diameter.stack.functional.cca.base.CCASessionBasicFlowTest.testBasicFlow(CCASessionBasicFlowTest.java:157)

Results :

Failed tests:
CCASessionBasicFlowTest.testBasicFlow:157 java.lang.Exception: Request: null
CCASessionBasicFlowTest.testBasicFlow:157 java.lang.Exception: Request: null

Tests run: 2, Failures: 2, Errors: 0, Skipped: 0

Currently, I still get stack with this issue.

@nhanth87
Copy link

nhanth87 commented Nov 6, 2016

hi @xphudin it's better that you can attach your code change so we can know what's problem, same for your other tickets

xphudin pushed a commit to xphudin/jdiameter that referenced this issue Nov 8, 2016
@xphudin
Copy link

xphudin commented Nov 8, 2016

hi @brainslog @nhanth87 ,
I commited source code above, Can you please help me to figure out why many tests are failed?
Thank you so much

@phuongdinh1411
Copy link
Collaborator

hi @brainslog can you please review it for me?
Thanks

@brainslog brainslog modified the milestone: 1.7.0.FINAL Mar 29, 2017
@deruelle deruelle added this to the 1.7.0.FINAL milestone Apr 3, 2017
@ammendonca ammendonca modified the milestone: 1.7.0-FINAL-Sprint 3 Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants