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
Obtains a ReadIndex from RaftCore if it remains the leader, and blocks until the state machine applies up to the ReadIndex. This process ensures that the application observes all state visible to a preceding read operation.
The text was updated successfully, but these errors were encountered:
The `Raft::is_leader()` method does not fully ensure linearizable read
operations and is deprecated in this version. Instead, applications
should use the `Raft::ensure_linearizable()` method to guarantee
linearizability.
Under the hood, `Raft::ensure_linearizable()` obtains a `ReadIndex` from
`RaftCore` if it remains the leader, and blocks until the state
machine applies up to the `ReadIndex`. This process ensures that the
application observes all state visible to a preceding read operation.
- Fix: databendlabs#965
Upgrade tip:
Replace `Raft::is_leader()` with `Raft::ensure_linearizable()`.
Obtains a
ReadIndex
fromRaftCore
if it remains the leader, and blocks until the state machine applies up to theReadIndex
. This process ensures that the application observes all state visible to a preceding read operation.The text was updated successfully, but these errors were encountered: