LEEKYE commented on code in PR #35120: URL: https://github.com/apache/beam/pull/35120#discussion_r2152586774
########## sdks/java/harness/src/main/java/org/apache/beam/fn/harness/control/ExecutionStateSampler.java: ########## @@ -169,7 +203,15 @@ private Void stateSampler() throws Exception { long millisSinceLastSample = currentTimeMillis - lastSampleTimeMillis; synchronized (activeStateTrackers) { for (ExecutionStateTracker activeTracker : activeStateTrackers) { - activeTracker.takeSample(currentTimeMillis, millisSinceLastSample); + try { + activeTracker.takeSample(currentTimeMillis, millisSinceLastSample); + } catch (RuntimeException e) { + LOG.error( + String.format( + "The SDK worker will restart because the lull time is longer than %d minutes", Review Comment: DONE -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org