You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been shown that the current discovery design is not ideal and can interfere with the memberships protocol of handling active and passive sets see #629 (comment)#696 (comment)
drop current stream based discovery in favour of static set of bootstrap nodes
The formulation as a stream is not entirely wrong, but somewhat misleading. The consumption of that stream is wrong, though. Consider:
After the initial bootstrapping, new peers are discovered via the membership protocol. In case we run out of reachable peers, we'd like to re-initiate the bootstrapping process (ie. reconnect). For this to work, we would either need to call some sort of reset on the datastructure containing the bootstrap nodes -- or keep using a stream, which, in the case of a static list, would simply cycle. The stream abstraction can also encapsulate dynamic discovery (eg. (m)DNS) more naturally (it wouldn't need to be Sync, I think).
There currently is a trait Discovery, which we never actually make useful use of:
It has been shown that the current discovery design is not ideal and can interfere with the memberships protocol of handling active and passive sets see #629 (comment) #696 (comment)
The text was updated successfully, but these errors were encountered: