rpc: backpressured RPC server (bump jsonrpsee 0.20)
This is rather big change but most stuff are "chore", the major things in this bump are:
- Server backpressure (the subscription impls are modified to deal with that)
- Allow custom error types / return types (remove jsonrpsee::core::Error and jsonrpee::core::CallError)
- Easier subscription API (spawned internally by jsonrpsee doesn't work well with rpc subscription prometheus, so these are spawned with oneshot to keep it alive)
- Bug fixes (graceful shutdown in particular not used by substrate anyway)
- Less dependencies for the clients in particular
- Return type requires
Clonein method call responses - tokio channels are now used and tests must run on the tokio runtime to not panic
Hopefully the last release prior to 1.0, sorry in advance for a big PR
polkadot companion: https://github.com/paritytech/polkadot/pull/7211
cumulus companion: https://github.com/paritytech/cumulus/pull/2560
bot rebase
Rebased
bot rebase
Rebased
this is blocked on a pending burn-in
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.
The CI pipeline was cancelled due to failure one of the required jobs. Job name: cargo-check-benches Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3295104
The CI pipeline was cancelled due to failure one of the required jobs. Job name: cargo-check-benches Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3295105
Sorry for walking in without context, yet what were the regressions identified preventing this from being merged?
Sorry for walking in without context, yet what were the regressions identified preventing this from being merged?
A leak and that the new async subscription API allocates more memory.
The leak is now fixed but investigating a fix for the increased memory usage.