Hi,
I noticed that in the createToken method of JpaEventStorageEngine the gap list is always empty. Is this an oversight? (The same can be said about other implementions such as JdbcEventStorageEngine by the way.)
private TrackingToken createToken(List<Long> results) {
if (results.size() == 0 || results.get(0) == null) {
return null;
}
return GapAwareTrackingToken.newInstance(results.get(0), Collections.emptySet());
}
This method is used in other methods such as createTailToken or createHeadToken. I am running into issues with this when comparing the head token to the token of a processor in order to see if the processor is running behind: as soon as the processor has any gaps the covers method of GapAwareTrackingToken returns false.
Regards,
Jens