statement-distribution: do not use OurViewChange#2790
Conversation
eskimor
left a comment
There was a problem hiding this comment.
I think we have to fix this the other way round - getting rid of ActiveLeavesUpdate. The view updates are handled in the network bridge and we are sharing a peer set for precisely the purpose of keeping our view in sync with peers. @rphmeier am I missing something?
|
|
Ok, if we assume signals are handled first, then this is probably fine for activated - but deactivated could remove us a head with still messages in flight - no? |
yes, but if a head is deactivated we don't want to handle these messages anyway |
Yes. What we could do is keep around old heads for a small amount of time, but that's not urgent at all. |
* quickfix for statement-distribution * some logs
This would eliminate the data race between
OurViewChangeandActiveLeavessignal and that's what most subsystem do to avoid this problem.