When a new leader is elected, the new leader's state machine may not fully catch up with the latest log index. In such a case, there will be a small time window for the leader's state machine to return stale data while it lags behind the latest log index.
To check whether the state machine is lagging behind the latest log index when it became a leader, added a new API.
When a new leader is elected, the new leader's state machine may not fully catch up with the latest log index. In such a case, there will be a small time window for the leader's state machine to return stale data while it lags behind the latest log index.
To check whether the state machine is lagging behind the latest log index when it became a leader, added a new API.