facebookarchive / nifty

Thrift on Netty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NiftyDispatcher needs to handle RejectedExecutionException

l3fang opened this issue · comments

It seems NiftyDispatcher does not catch RejectedExecutionException if submit() fails. This could happen, say, the exe configured by the application code is using a bounded queue. Without this we cannot prevent a thrift server already having performance issues from going into an OOM state, further exacerbating the problem.