[
https://issues.apache.org/jira/browse/BEAM-9648?focusedWorklogId=419031&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-419031
]
ASF GitHub Bot logged work on BEAM-9648:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Apr/20 00:23
Start Date: 09/Apr/20 00:23
Worklog Time Spent: 10m
Work Description: regadas commented on pull request #11275: [BEAM-9648]:
DirectRunner should return null on timeout
URL: https://github.com/apache/beam/pull/11275#discussion_r405888827
##########
File path:
runners/direct-java/src/main/java/org/apache/beam/runners/direct/ExecutorServiceParallelExecutor.java
##########
@@ -260,6 +260,11 @@ public State waitUntilFinish(Duration duration) throws
Exception {
}
}
}
+
+ if (Instant.now().isAfter(completionTime)) {
+ return null;
+ }
Review comment:
Cleaned it up a little bit more and kept `(update == null &&
pipelineState.get().isTerminal())` to ensure that if an update has a
`Throwable` it gets thrown. (keeps previous semantic).
----------------------------------------------------------------
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: 419031)
Time Spent: 1h (was: 50m)
> DirectRunner waitUntilFinish does not return null on timeout
> ------------------------------------------------------------
>
> Key: BEAM-9648
> URL: https://issues.apache.org/jira/browse/BEAM-9648
> Project: Beam
> Issue Type: Bug
> Components: runner-direct
> Affects Versions: 2.19.0
> Reporter: Filipe Regadas
> Assignee: Filipe Regadas
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> According to PipelineResult if waitUntilFinish(Duration) is supported it
> should return null.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)