m-trieu commented on code in PR #28537:
URL: https://github.com/apache/beam/pull/28537#discussion_r1330629021
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java:
##########
@@ -701,6 +414,71 @@ public void run() {
LOG.debug("maxWorkItemCommitBytes: {}", maxWorkItemCommitBytes);
}
+ /** Returns whether an exception was caused by a {@link OutOfMemoryError}. */
+ private static boolean isOutOfMemoryError(Throwable t) {
+ while (t != null) {
+ if (t instanceof OutOfMemoryError) {
+ return true;
+ }
+ t = t.getCause();
+ }
+ return false;
+ }
+
+ private static MapTask parseMapTask(String input) throws IOException {
+ return Transport.getJsonFactory().fromString(input, MapTask.class);
+ }
+
+ public static void main(String[] args) throws Exception {
Review Comment:
@kennknowles out of curiosity, do you happen to know where this is
referenced? I was looking for it in a gradle file, but couldn't find it and
not sure if its even referenced in those.
Thanks!
--
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]