Skip to content

Conversation

tillrohrmann
Copy link
Contributor

The LatencyMarksEmitter class uses now the StreamTask's ProcessingTimeService to schedule
latency mark emission. For that the ProcessingTimeService was extended to have the method
scheduleAtFixedRate to schedule repeated tasks. The latency mark emission is such a repeated
task.

cc @rmetzger.

@StephanEwen
Copy link
Contributor

Looks good to me, +1

@StephanEwen
Copy link
Contributor

Just for curiosity: I think that could have been solved also without extending the ProcessingTimeService for periodic tasks - each task could simply schedule its successor.

@tillrohrmann
Copy link
Contributor Author

True. The ProcessingTimeService extension seemed to me like the slightly cleaner approach (even though, the ScheduledThreadPoolExecutor does it in a similar fashion internally). Thanks for the review @StephanEwen.

@rmetzger
Copy link
Contributor

+1 to merge.

@tillrohrmann
Copy link
Contributor Author

tillrohrmann commented Dec 16, 2016

Thanks for your review @rmetzger. Merging this PR.

@tillrohrmann tillrohrmann force-pushed the fixLatencyMarksEmitter branch 3 times, most recently from b4ebab9 to a2e8ff9 Compare December 20, 2016 15:34
…ervice

The LatencyMarksEmitter class uses now the StreamTask's ProcessingTimeService to schedule
latency mark emission. For that the ProcessingTimeService was extended to have the method
scheduleAtFixedRate to schedule repeated tasks. The latency mark emission is such a repeated
task.

This closes apache#3008.
@tillrohrmann tillrohrmann force-pushed the fixLatencyMarksEmitter branch from a2e8ff9 to edaa6b5 Compare December 20, 2016 16:01
@asfgit asfgit closed this in ab2125b Dec 20, 2016
joseprupi pushed a commit to joseprupi/flink that referenced this pull request Feb 12, 2017
…ervice

The LatencyMarksEmitter class uses now the StreamTask's ProcessingTimeService to schedule
latency mark emission. For that the ProcessingTimeService was extended to have the method
scheduleAtFixedRate to schedule repeated tasks. The latency mark emission is such a repeated
task.

This closes apache#3008.
@tillrohrmann tillrohrmann deleted the fixLatencyMarksEmitter branch March 6, 2017 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants