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

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

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

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubMessageWithMessageIdCoder.java
 ##########
 @@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.sdk.io.gcp.pubsub;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import org.apache.beam.sdk.coders.ByteArrayCoder;
+import org.apache.beam.sdk.coders.Coder;
+import org.apache.beam.sdk.coders.CustomCoder;
+import org.apache.beam.sdk.coders.StringUtf8Coder;
+import 
org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableMap;
+
+/** A coder for PubsubMessage treating the raw bytes being decoded as the 
message's payload. */
 
 Review comment:
   Please update this comment as well that it contains the message id.
 
----------------------------------------------------------------
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: 238160)

> 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: 1h
>  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.3#76005)

Reply via email to