kennknowles commented on code in PR #24188:
URL: https://github.com/apache/beam/pull/24188#discussion_r1034021724
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/WorkItemStatusClient.java:
##########
@@ -116,6 +117,10 @@ public synchronized void setWorker(
/** Return the {@link WorkItemServiceState} resulting from sending an error
completion status. */
public synchronized WorkItemServiceState reportError(Throwable e) throws
IOException {
checkState(!finalStateSent, "cannot reportUpdates after sending a final
state");
+ if (wasAskedToAbort) {
+ LOG.info("Service already asked to abort work item, not reporting
ignored progress.");
+ return null;
Review Comment:
Thanks for adding it. This will be one less for the person who eventually
enables checkerframework.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]