Skip to content
Commit 7a5d2664 authored by Johannes Dillmann's avatar Johannes Dillmann
Browse files

servers: views: Return LeaseState to speed up invalidation.

Before the invalidation method had to wait until
1) a majority did respond and
2) either the primary or all replicas did respond
   or in case both could not be satisfied, until the lease did time out.

This did result in long delays if either 1) no primary was elected at the time
of invalidation and at least one replica was unreachable, or 2) the primary
itself did not respond.

With this commit an additional LeaseState is returned with invalidation
responses, which allows to determine if a primary did exist at all and fixes
delays as described in the first case.
parent 43704551
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment