thiagotnunes commented on code in PR #34967:
URL: https://github.com/apache/beam/pull/34967#discussion_r2144250296


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.java:
##########
@@ -292,4 +297,12 @@ private boolean isTimestampOutOfRange(SpannerException e) {
         && e.getMessage() != null
         && e.getMessage().contains(OUT_OF_RANGE_ERROR_MESSAGE);
   }
+
+  // Return (now + 2 mins) as the end timestamp for reading change streams. 
This is only used if
+  // users want to run the connector forever. This approach works because 
Apache beam checkpoints

Review Comment:
   Apache beam does not guarantee any checkpointing, it depends on the executor.
   
   Update to Dataflow checkpoints every 5s or 5MB? This solution is tailored to 
Dataflow though, perhaps we could make this configurable?
   
   cc @scwhittle 



-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to