thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Blanc (Jira)" <>
Subject [jira] [Created] (THRIFT-4962) Deadlock in TimerManager::stop
Date Fri, 20 Sep 2019 15:32:00 GMT
Guillaume Blanc created THRIFT-4962:

             Summary: Deadlock in TimerManager::stop
                 Key: THRIFT-4962
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 0.12.0
            Reporter: Guillaume Blanc
         Attachments: test.cpp

If multiple threads call TimerManager::stop, they will all be waiting on monitor for state
to go to STOPPED.
As Dispatcher use monitor_.notify, only one of the thread will be awakened, other will stay
waiting forever.

See attached test code to reproduce the issue (timing dependent).

This message was sent by Atlassian Jira

View raw message