The status reconcilation loop runs differently than it seems is intended (based on the original DEBUG logging): reconcilation is triggered every time that the lease updates, even when there is no change in leadership. The code seems to assume that the lease only updates when leadership changes, but this is not the case.
This commit updates the status reconcilation loop to use a timer. The timer is reset when leadership is acquired so that reconcilation is triggered at a fixed interval.
The status reconcilation loop runs differently than it seems is intended (based on the original DEBUG logging): reconcilation is triggered every time that the lease updates, even when there is no change in leadership. The code seems to assume that the lease only updates when leadership changes, but this is not the case.
This commit updates the status reconcilation loop to use a timer. The timer is reset when leadership is acquired so that reconcilation is triggered at a fixed interval.