atomix / copycat

A novel implementation of the Raft consensus algorithm

Home Page:http://atomix.io/copycat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scheduling recurrent tasks does not work as expected

JPWatson opened this issue · comments

ServerStateMachineExecutor reschedules recurrent tasks according to delay rather than interval.

getExecutor().schedule(Duration.ofSeconds(1), Duration.ofSeconds(5), task);

task gets called every 1 second rather than every 5.

Should this issue be filed with https://github.com/atomix/catalyst instead?

The bug is in the copycat code base (see the PR).