Open facundominguez opened 9 years ago
These tests break connections with testBreakConnection, which doesn't deliver EventConnectionLost isn't this a bug specific to the network-transport backend being used during tests?
Yes, probably so.
Then move issue to e.g. n-t-tcp? Does n-t-inmemory suffer from the same problem?
testBreakConnection
is not implemented by n-t-tcp, but it is rather done in d-p-tests [1].
Addressing this probably requires implementing breakConnection
in n-t-tcp (now haskell-distributed/distributed-process#434). n-t-inmemory already implements it and AFAICS it does deliver EventConnectionLost
.
The bug:
This is observed only in tests so far (MonitorNode, MonitorLiveNode, MonitorChannel from CH). These tests break connections with
testBreakConnection
, which doesn't deliverEventConnectionLost
. If the transport deliveredEventConnectionLost
, then d-p would notify the death of all processes, I hope.Instead, d-p has a patch that workarounds the problem: haskell-distributed#246