tomstepp commented on code in PR #33591:
URL: https://github.com/apache/beam/pull/33591#discussion_r1927532919
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/WindmillSink.java:
##########
@@ -214,8 +214,27 @@ public long add(WindowedValue<T> data) throws IOException {
.setData(value)
.setMetadata(metadata);
keyedOutput.addMessages(builder.build());
+
+ long offsetSize = 0;
+ if (context.offsetBasedDeduplicationEnabled()) {
+ byte[] rawId = context.getCurrentRecordId();
+ if (rawId.length == 0) {
+ throw new RuntimeException("Unexpected empty record ID while
offset-based deduplication enabled.");
+ }
+ id = ByteString.copyFrom(rawId);
Review Comment:
Updated to not expect ID from ValueWithRecordId.
--
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]