Issue Details (XML | Word | Printable)

Key: DIRMINA-117
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

ThreadPoolFilters doesn't stop all worker threads.

Created: 05/Nov/05 12:36 PM   Updated: 05/Nov/05 12:38 PM
Return to search
Component/s: None
Affects Version/s: 0.8.0
Fix Version/s: 0.8.1

Time Tracking:
Not Specified

Resolution Date: 05/Nov/05 12:38 PM


 Description  « Hide
Paolo Perrucci Wrote:

During some tests of my server I found a strange shutdown problem.
After calling the unbindAll() method my application doesn't exit.
Analyzing the thread dump (requested 2 minutes after shutdown) of the
vitual machine I found this thread:

"ProtocolThreadPool-12" prio=1 tid=0x082985c8 nid=0x4452 in
Object.wait() [5b60b000..5b60b854]
   at java.lang.Object.wait(Native Method)
   - waiting on <0x477d7460> (a org.apache.mina.util.BlockingQueue)
   at java.lang.Object.wait(Object.java:429)
   at
org.apache.mina.util.BlockingQueue.waitForNewItem(BlockingQueue.java:55)
   - locked <0x477d7460> (a org.apache.mina.util.BlockingQueue)
   at
org.apache.mina.util.BaseThreadPool$Worker.fetchBuffer(BaseThreadPool.java:376)
   - locked <0x477d7460> (a org.apache.mina.util.BlockingQueue)
   at
org.apache.mina.util.BaseThreadPool$Worker.run(BaseThreadPool.java:350)

It's the only non daemon blocked thread alive, so the vm doesn't exit.
I think this may be a bug.

I'm using the 0.8.1 snapshot (checked out this morning at 11:00 CET).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Trustin Lee added a comment - 05/Nov/05 12:38 PM
Checked in the fix.