You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1ebefb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamAction.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -358,11 +358,11 @@ public ProcessContinuation run(
358
358
"[{}] change stream completed successfully up to {}", token, changeStreamQueryEndTimestamp);
359
359
360
360
if (!stopAfterQuerySucceeds) {
361
-
// Records stopped being returned for the query due to our artificial query end timestamp but
362
-
// we want to continue processing the partition, resuming from changeStreamQueryEndTimestamp.
363
-
if (!tracker.tryClaim(changeStreamQueryEndTimestamp)) {
364
-
returnProcessContinuation.stop();
365
-
}
361
+
// Leave the tracker at the last claimed position (record or heartbeat)
362
+
// instead of advancing to the query end timestamp.
363
+
// This works around spanner backend issue where some child partition records
364
+
// were not sent. In other cases since heartbeating is regular the last
365
+
// received timestamp will not be far behind the query end timestamp.
Copy file name to clipboardExpand all lines: sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/action/QueryChangeStreamActionTest.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -834,15 +834,14 @@ public void testQueryChangeStreamFinishedWithResume() {
0 commit comments