kennknowles opened a new issue, #18416:
URL: https://github.com/apache/beam/issues/18416

   Stop streaming pipeline when global watermark reaches ****INF as suggested 
in BEAM-849 comments.
   
   We can do this similarly to the solution in 
[TestSparkRunner#awaitWatermarksOrTimeout](https://github.com/apache/beam/blob/v2.1.0/runners/spark/src/main/java/org/apache/beam/runners/spark/TestSparkRunner.java#L158-L179)
 by polling ```
   
   SparkTimerInternals.global(GlobalWatermarkHolder.get(...))
   
   ```
   
   
   We can also remove this code from `TestSparkRunner` if we make sure all 
sources in test behave in a way which shifts the watermark to ****INF at the 
end of the test.
   
   Imported from Jira 
[BEAM-2847](https://issues.apache.org/jira/browse/BEAM-2847). Original Jira may 
contain additional context.
   Reported by: aviemzur.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to