[ https://issues.apache.org/jira/browse/THRIFT-2872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613634#comment-14613634 ]
Hudson commented on THRIFT-2872: -------------------------------- SUCCESS: Integrated in Thrift #1590 (See [https://builds.apache.org/job/Thrift/1590/]) THRIFT-2872 Fix dead lock when all tasks are expired (roger: rev 2fadc8d5cace1854cdd94483f7f231080bbd2d64) * lib/cpp/src/thrift/concurrency/ThreadManager.cpp > ThreadManager deadlock for task expiration > ------------------------------------------ > > Key: THRIFT-2872 > URL: https://issues.apache.org/jira/browse/THRIFT-2872 > Project: Thrift > Issue Type: Bug > Components: C++ - Library > Reporter: Qiao Mu > Assignee: Roger Meier > Fix For: 0.9.3 > > Attachments: 0001-Fix-dead-lock-when-all-tasks-are-expired.patch > > > I have a TNonblockingServer running with 1 worker thread and 10 IO thread. > If there was a big task that just finished, all pending tasks might be > expired. In such case, all IO threads are waiting for maxMonitor_, but the > worker won't notify. It will remove all the tasks(all of them are expired) > first. And then the notify code won't be executed because tasks are empty. > Deadlock occurs. > The patch move the if-notify statement out so it will notify even if all > tasks are removed for expiration. -- This message was sent by Atlassian JIRA (v6.3.4#6332)