akalash commented on a change in pull request #17440: URL: https://github.com/apache/flink/pull/17440#discussion_r728809401
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java ########## @@ -788,9 +788,14 @@ private void scheduleBufferDebloater() { @VisibleForTesting void debloat() { - long throughput = throughputCalculator.calculateThroughput(); - if (bufferDebloater != null) { - bufferDebloater.recalculateBufferSize(throughput); + try { + long throughput = throughputCalculator.calculateThroughput(); + if (bufferDebloater != null) { + bufferDebloater.recalculateBufferSize(throughput); + } + // Don't fail the further calculation if the current one fails. + } catch (Throwable ex) { + LOG.error("Throughput calculation fails, try next time.", ex); Review comment: I have removed try-catch block -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org