Skip to content

Commit 2e62a57

Browse files
authored
Update lib/logstash/inputs/elasticsearch/cursor_tracker.rb
1 parent 4699a5c commit 2e62a57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/logstash/inputs/elasticsearch/cursor_tracker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def checkpoint_cursor
3535

3636
def converge_last_value
3737
return if @last_value_hashmap.empty?
38+
# TODO this implicitly assumes that the way to converge the value among slices is to pick the highest and we can't assume that
3839
new_last_value = @last_value_hashmap.reduceValues(1, lambda { |v1, v2| Time.parse(v1) < Time.parse(v2) ? v2 : v1 })
3940
return if new_last_value == @last_value
4041
@last_value = new_last_value

0 commit comments

Comments
 (0)