Correctly set the latestEtag by using a currentLatestEtag inside the ExecuteAllInterleaved method instead of sharing there the same latestEtag. This let me to then set latestEtag to the max currentLatestEtag. This fixing a bug where the db tried to do replication from scratch infinitely.