Is it feasible to implement a saturation policy like CallerRunsPolicy? It would allow for graceful degradation.
On Mon, Feb 13, 2017 at 8:45 PM, Dmitriy Setrakyan <[email protected]> wrote: > On Mon, Feb 13, 2017 at 8:18 AM, Alexey Goncharuk < > [email protected]> wrote: > > > > > > > We cannot compensate blocked threads with new ones forever. At some > point > > > we will have to limit new threads which will bring us to the same > > problem, > > > no? > > > > > > > This means that a user recursively trying to call blocking tasks inside > of > > blocking tasks. We can as well detect this and fail with an analogue of > > StackOverflowError (and emit a warning in the log in advance). > > > > Got it. Agree. > -- Kind regards, Alexander.
