GapAwareToken should minimize the number of gaps #391
Labels
Priority 1: Must
Highest priority. A release cannot be made if this issue isn’t resolved.
Status: Resolved
Use to signal that work on this issue is done.
Type: Enhancement
Use to signal an issue enhances an already existing feature of the project.
Milestone
The JpaEventStorageEngine (as well as JdbcEventStorageEngine) use a GapAwareTrackingToken to ensure that they don't accidentally skip an event that may have been inserted before, but committed after another event.
However, gaps that are older than a certain threshold (e.g. a minute) don't need to be reported as gaps anymore, as they don't represent an uncommitted event, but rather a rolled back one or a gap in the sequence provider.
Therefore, the Jpa and JdbcEventStorageEngine should remove gaps from any incoming and/or outgoing tokens if they were older than this threshold. The gaps age can be calculated from the timestamp of the event following any gap.
The text was updated successfully, but these errors were encountered: