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
Feature: new RaftNetwork API with argument RCPOption
- `RaftNetwork` introduced 3 new API `append_entries`,
`install_snapshot` and `vote` which accept an additional argument
`RPCOption`, and deprecated the old API `send_append_entries`,
`send_install_snapshot` and `send_vote`.
- The old API will be **removed** in `0.9`. An application can still
implement the old API without any changes. Openraft calls only the new
API and the default implementation will delegate to the old API.
- Implementing the new APIs will disable the old APIs.
- The new APIs accepts an additional argument `RPCOption`, to enable an
application control the networking behaviors based on the parameters
in `RPCOption`.
The `hard_ttl()` and `soft_ttl()` in `RPCOption` sets the hard limit
and the moderate limit of the duration for which an RPC should run.
Once the `soft_ttl()` ends, the RPC implementation should start to
gracefully cancel the RPC, and once the `hard_ttl()` ends, Openraft
will terminate the ongoing RPC at once.
- Fix: databendlabs#819
0 commit comments