Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

bug in CarEventSort.java #52

Open
bigflood opened this issue Jan 22, 2021 · 0 comments
Open

bug in CarEventSort.java #52

bigflood opened this issue Jan 22, 2021 · 0 comments

Comments

@bigflood
Copy link

"queueState.update(queue)" is missing at the end of the "onTimer" function.

public void onTimer(long timestamp, OnTimerContext context, Collector<ConnectedCarEvent> out) throws Exception {
PriorityQueue<ConnectedCarEvent> queue = queueState.value();
Long watermark = context.timerService().currentWatermark();
ConnectedCarEvent head = queue.peek();
while (head != null && head.timestamp <= watermark) {
out.collect(head);
queue.remove(head);
head = queue.peek();
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant