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

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

                Author: ASF GitHub Bot
            Created on: 20/Nov/19 05:46
            Start Date: 20/Nov/19 05:46
    Worklog Time Spent: 10m 
      Work Description: kennknowles commented on pull request #10153: 
[BEAM-8740] TestPubsub ignores timeout
URL: https://github.com/apache/beam/pull/10153#discussion_r348300547
 
 

 ##########
 File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/TestPubsub.java
 ##########
 @@ -202,9 +202,11 @@ public void publish(List<PubsubMessage> messages) throws 
IOException {
   public List<PubsubMessage> pull(int maxBatchSize) throws IOException {
     List<PubsubClient.IncomingMessage> messages =
         pubsub.pull(0, subscriptionPath, maxBatchSize, true);
-    pubsub.acknowledge(
-        subscriptionPath,
-        messages.stream().map(msg -> 
msg.ackId).collect(ImmutableList.toImmutableList()));
+    if (!messages.isEmpty()) {
 
 Review comment:
   out of curiosity, was this a crasher?
 
----------------------------------------------------------------
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: 346475)
    Time Spent: 20m  (was: 10m)

> TestPubsub ignores timeout
> --------------------------
>
>                 Key: BEAM-8740
>                 URL: https://issues.apache.org/jira/browse/BEAM-8740
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Brian Hulette
>            Assignee: Brian Hulette
>            Priority: Major
>             Fix For: 2.18.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>




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

Reply via email to