tvalentyn commented on code in PR #32170:
URL: https://github.com/apache/beam/pull/32170#discussion_r1722504062


##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaExactlyOnceSink.java:
##########
@@ -524,6 +526,20 @@ void commitTxn(long lastRecordId, Counter numTransactions) 
throws IOException {
           ProducerSpEL.commitTransaction(producer);
 
           numTransactions.inc();
+          if (!reportedLineage) {
+            Lineage.getSinks()
+                .add(
+                    "kafka",
+                    ImmutableList.of(

Review Comment:
   > Because Lineage is a Set, report multiple times does not harm
   
   Ok, great, I think this is what I was asking about.



-- 
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