thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amar Agrawal <>
Subject Deadlock in Thrift C++ TNonBlockingServer
Date Wed, 23 Aug 2017 15:04:44 GMT

We have implemented an application server using TNonBlockingServer in C++ (thrift version
0.10.0). We experience intermittent application hangup (suspect on high load) where the worker
threads no longer accept incoming connections.

Analyzing thread dumps shows that all worker threads are waiting on manager monitor locks.
This looks like a deadlock as the application is unable to get out of this state without a

We also see exactly one thread waiting on select after handling a task expiry always. Can
anybody help understand if this is a bug in task expiry handler?

- Thrift version: 0.10.0
- Library: C++
 - Thread Model: Non Blocking
- Number of worker threads: 8 CPU cores: 4

(Thread dump attached)

Amar Agrawal
RevX<>, VP of Engineering
+91 - 9986 303 844 | amar.komli@skype<mailto:amar.komli@skype>

Customer Success Stories<> | Latest Blogs<>
Facebook<> | LinkedIn<>
| Twitter<>

View raw message