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

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

                Author: ASF GitHub Bot
            Created on: 09/Aug/19 00:53
            Start Date: 09/Aug/19 00:53
    Worklog Time Spent: 10m 
      Work Description: udim commented on pull request #8370: [BEAM-3489] add 
PubSub messageId in PubsubMessage
URL: https://github.com/apache/beam/pull/8370#discussion_r312296771
 
 

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubUnboundedSource.java
 ##########
 @@ -884,7 +884,7 @@ public PubsubMessage getCurrent() throws 
NoSuchElementException {
       if (current == null) {
         throw new NoSuchElementException();
       }
-      return new PubsubMessage(current.elementBytes, current.attributes);
+      return new PubsubMessage(current.elementBytes, current.attributes, 
current.recordId);
 
 Review comment:
   nm, my mistake
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 291685)
    Time Spent: 6h 50m  (was: 6h 40m)

> Expose the message id of received messages within PubsubMessage
> ---------------------------------------------------------------
>
>                 Key: BEAM-3489
>                 URL: https://issues.apache.org/jira/browse/BEAM-3489
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-java-gcp
>            Reporter: Luke Cwik
>            Assignee: Thinh Ha
>            Priority: Minor
>              Labels: newbie, starter
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>
> This task is about passing forward the message id from the pubsub proto to 
> the java PubsubMessage.
> Add a message id field to PubsubMessage.
> Update the coder for PubsubMessage to encode the message id.
> Update the translation from the Pubsub proto message to the Dataflow message:
> https://github.com/apache/beam/blob/2e275264b21db45787833502e5e42907b05e28b8/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubUnboundedSource.java#L976



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to