Assuming we have leader who is guaranteed to be the leader when serving read only requests (guaranteed with leader leader lease or just assume it's not going to be disconnected from other nodes)
What if, while handling the read only request, we directly read from the state machine without checking if lastapplied is at least same as commitIndex? In a simple implementation, if commitIndex update and state machine apply is done atomically (naive implementation), then we are fine.
But what will be the case if a read only requests directly read from state machine, without doing this check?