vegaprotocol / data-node

A rich API server for Vega Protocol
https://vega.xyz
Other
3 stars 1 forks source link

Data node gets stuck #690

Closed pscott31 closed 2 years ago

pscott31 commented 2 years ago

Occasionally the data node just stops adding blocks.

On investigation it was found that there's a deadlock possible when

I propose to remove the concept of a blocking notifier (which I implemented just to try and replicate what was happening in the old market depth service, but I think it might have been an unintentional 'feature' in the first place)

Further I noticed that for all the rest of the 'non blocking' notifiers, if the buffer was full when trying to notify it would silently drop the events. I would like to change it so that the channel is closed and the subscription is dropped if it fails to send; that way at least clients will know they are missing data.