SyncFree/Divergence

Comparator should be greater or lesser than may have caused the Issue #9

Opened this issue · 0 comments

In peersim.example.replicationProtocols.clients file RandomCounterOperationGenerator.java function getNextSetOfOperations line if(DCCommonState.getTime() > this.nextGenerationEvent) return ops;

we are not sure if the comparation operator should be > or < and that may be the cause for the extrange behaviour in Issue #9.

Its a minor issue because it has been fixed with a work around by only checking the time in hasMoreOperations,
and as long as all the operations are upload in the first run there is no problem. But as soon as the number of operations grow and they have to be processed in more that one run, then this becomes important.