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

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

                Author: ASF GitHub Bot
            Created on: 19/Apr/21 20:52
            Start Date: 19/Apr/21 20:52
    Worklog Time Spent: 10m 
      Work Description: suztomo commented on a change in pull request #14578:
URL: https://github.com/apache/beam/pull/14578#discussion_r616169131



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsublite/Publishers.java
##########
@@ -35,24 +39,26 @@
   private Publishers() {}
 
   @SuppressWarnings("unchecked")
-  static Publisher<PublishMetadata> newPublisher(PublisherOptions options) 
throws ApiException {
+  static Publisher<MessageMetadata> newPublisher(PublisherOptions options) 
throws ApiException {
     SerializableSupplier<Object> supplier = options.publisherSupplier();
     if (supplier != null) {
       Object supplied = supplier.get();
-      TypeToken<Publisher<PublishMetadata>> token = new 
TypeToken<Publisher<PublishMetadata>>() {};
+      TypeToken<Publisher<MessageMetadata>> token = new 
TypeToken<Publisher<MessageMetadata>>() {};
       checkArgument(token.isSupertypeOf(supplied.getClass()));
-      return (Publisher<PublishMetadata>) supplied;
+      return (Publisher<MessageMetadata>) supplied;
     }
+    TopicPath topic = options.topicPath();
     return new PartitionCountWatchingPublisher(

Review comment:
       @dpcollins-google On this constructor argument change, I replaced the 
Beam code with the default values by reading the diff in 
https://github.com/googleapis/java-pubsublite/pull/475/files. But the 
PartitionCountWatchingPublisher constructor changed its accessor from public to 
package-default. Do you have a suggestion on how to adopt the change here?
   
   ```
   > Task :sdks:java:io:google-cloud-platform:compileJava
   
/Users/suztomo/beam/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsublite/Publishers.java:51:
 error:
    PartitionCountWatchingPublisher(PartitionPublisherFactory,
       com.google.cloud.pubsublite.internal.RoutingPolicy.Factory,
       com.google.cloud.pubsublite.internal.wire.PartitionCountWatcher.Factory) 
is not public in PartitionCountWatchingPublisher; cannot be accessed from 
outside package
       return new PartitionCountWatchingPublisher(
              ^
   ```
   




-- 
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: 585364)
    Time Spent: 0.5h  (was: 20m)

> Beam Dependency Update Request: com.google.cloud:google-cloud-pubsublite
> ------------------------------------------------------------------------
>
>                 Key: BEAM-11010
>                 URL: https://issues.apache.org/jira/browse/BEAM-11010
>             Project: Beam
>          Issue Type: Sub-task
>          Components: dependencies
>            Reporter: Beam JIRA Bot
>            Priority: P3
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
>  ------------------------- 2020-10-05 12:16:22.002680 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.1.6. The latest version is 0.4.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2020-10-12 12:17:32.946707 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.1.6. The latest version is 0.4.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-02-08 12:24:12.051486 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.10.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-02-15 12:22:21.398946 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.10.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-02-22 12:20:02.544703 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.10.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-03-01 12:20:42.879270 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.11.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-03-08 12:22:30.221914 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.11.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-03-15 12:24:04.931272 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.11.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-03-22 12:21:36.885299 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.12.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-03-29 12:21:24.103712 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.12.0 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-04-05 12:22:46.599190 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.13.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-04-12 12:24:00.148493 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.13.1 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 
>  ------------------------- 2021-04-19 12:22:29.948524 
> -------------------------
>         Please consider upgrading the dependency 
> com.google.cloud:google-cloud-pubsublite. 
>         The current version is 0.7.0. The latest version is 0.13.2 
>         cc: 
>  Please refer to [Beam Dependency Guide 
> |https://beam.apache.org/contribute/dependencies/]for more information. 
> Do Not Modify The Description Above. 



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

Reply via email to