Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.10.2.1
-
None
-
None
Description
I am unable to fetch elements that are inserted with a timestamp before the timestamp of the first element inserted into a WindowStore.
This affects newly created WindowStores or one that is restored from a changelog topic.
The method I use to insert into the Window Store is
Looking into the code, the issue might be with how the minSegmentId is being calculated here.
Something like the below fixes the issue with regards to the WindowStore but I am not sure what the implications would be for Streams as a whole.
if (minSegmentId == Long.MAX_VALUE) {
minSegmentId = maxSegmentId;
} else {
minSegmentId = segmentId < minSegmentId ? segmentId : minSegmentId;
}