[Tarantool-patches] [PATCH] Add a cancellation guard to cpipe flush callback

Konstantin Osipov kostja.osipov at gmail.com
Tue Dec 24 18:33:08 MSK 2019


* Leonid Vasiliev <lvasiliev at tarantool.org> [19/12/24 18:30]:
> 
> Other alternatives (which I can come up with) add possible races or
> cancellation points.
> We must cancel the thread before cancellation point in ev_async_send
> (ev_async_send(endpoint->consumer, &endpoint->async);) and as close as
> possible to it for to reproduce a behavior from
> https://github.com/tarantool/tarantool/issues/4127 .

I think if you add some stress component to test then it'll hit
the right timing once in a while without violating encapsulation.

But it's great you do have a way to reproduce at least...

-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list