Closed mzhurovich closed 9 years ago
On me, thanks @mzhurovich.
Consistently reproducible:
./.noshit/test --gtest_repeat=987654321 --gtest_filter=Sherlock.SubscribeProcessedThreeEntriesBecauseWeWaitInTheScope
Looked into it.
It appears to be a consequence of a bad design, namely:
unique_ptr<>
to the actual listener object, and passes the ownership of this listener object to a dedicated thread.shared_ptr<>
I think the right solution is to decouple detachable and non-detachable implementations altogether. No time from my end as of right now, hope to get back to it shotlt.
By the way, this is fixed!
Same thing happens in
SubscribeToStreamViaHTTP
test also. Looks like we have a deadlock in Sherlock.