Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NetworkService::write_notification #551

Open
tomaka opened this issue Jul 29, 2020 · 4 comments
Open

Remove NetworkService::write_notification #551

tomaka opened this issue Jul 29, 2020 · 4 comments
Labels
I3-annoyance The node behaves within expectations, however this “expected behaviour” itself is at issue. I6-meta A specific issue for grouping tasks or bugs of a specific category.

Comments

@tomaka
Copy link
Contributor

tomaka commented Jul 29, 2020

The API of the write_notification method doesn't permit back-pressure to be propagated to the code that emits notifications.
For this reason, NetworkService now has a replacement notification_sender method.

The write_notification isn't marked as #[deprecated] because we have a policy against that, but it should very much be considered as deprecated.

This issue consists in removing the usage of write_notification from the sc-network-gossip crate (the only crate that uses it).
It is unclear to me how difficult it is to do so, but I know that it is certainly not trivial.

@rphmeier
Copy link
Contributor

rphmeier commented Aug 3, 2020

This issue consists in removing the usage of write_notification from the sc-network-gossip crate (the only crate that uses it).

We also make heavy use of this API in Polkadot at the moment, so that is also a blocker for removal.

@tomaka
Copy link
Contributor Author

tomaka commented May 3, 2021

Polkadot should actually not be that difficult because its code is very asynchronous. The notification_sender replacement should therefore be rather easy to use, and the difficulty IMO is mostly about figuring out what to do exactly when buffers are full.

When it comes to GrandPa, however, we still use manual polling, and replacing a synchronous function call with an asynchronous call can require a big amount of refactoring.

@stale
Copy link

stale bot commented Jul 7, 2021

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the A5-stale label Jul 7, 2021
@rphmeier
Copy link
Contributor

rphmeier commented Jul 7, 2021

Yep, still very important.

@stale stale bot removed the A5-stale label Jul 7, 2021
@altonen altonen transferred this issue from paritytech/substrate Aug 24, 2023
@the-right-joyce the-right-joyce added I3-annoyance The node behaves within expectations, however this “expected behaviour” itself is at issue. I6-meta A specific issue for grouping tasks or bugs of a specific category. and removed I4-annoyance labels Aug 25, 2023
claravanstaden pushed a commit to Snowfork/polkadot-sdk that referenced this issue Dec 8, 2023
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Mar 26, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Mar 27, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
serban300 pushed a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I3-annoyance The node behaves within expectations, however this “expected behaviour” itself is at issue. I6-meta A specific issue for grouping tasks or bugs of a specific category.
Projects
Status: Backlog 🗒
Development

No branches or pull requests

4 participants