[ 
https://issues.apache.org/jira/browse/BEAM-12193?focusedWorklogId=588164&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-588164
 ]

ASF GitHub Bot logged work on BEAM-12193:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Apr/21 21:18
            Start Date: 23/Apr/21 21:18
    Worklog Time Spent: 10m 
      Work Description: boyuanzz commented on a change in pull request #14570:
URL: https://github.com/apache/beam/pull/14570#discussion_r619500844



##########
File path: 
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/TopicPartitionCoder.java
##########
@@ -48,7 +49,7 @@ public TopicPartition decode(InputStream inStream) throws 
CoderException, IOExce
 
   @Override
   public List<? extends Coder<?>> getCoderArguments() {
-    return null;
+    return ImmutableList.of(StringUtf8Coder.of(), VarIntCoder.of());

Review comment:
       It is used when using the coder in state, which is invoked by 
`StructureCoder.toString()`. That's why I added a unit test for that.




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

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 588164)
    Time Spent: 1h  (was: 50m)

> WatchKafkaTopicPartitionDoFn reports user counter to indicate which 
> TopicPartition has been emitted to downstream
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-12193
>                 URL: https://issues.apache.org/jira/browse/BEAM-12193
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-kafka
>            Reporter: Boyuan Zhang
>            Assignee: Boyuan Zhang
>            Priority: P2
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> WatchKafkaTopicPartitionDoFn can use user counter to indicate which 
> TopicPartition has been outputted to downstream.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to