xintongsong commented on PR #19991: URL: https://github.com/apache/flink/pull/19991#issuecomment-1173282190
I tend not to merge this change. First of all, the sanity check is unnecessary for both the `if-` and the `else-` branches here. For the `if-` branch, the sanity is guaranteed by the logics in `deriveJvmOverheadFromTotalFlinkMemoryAndOtherComponents`. So if we want to improve these codes, we probably should simply remove the sanity check. More importantly, I don't see how this change benefits Flink. The "problem" it tries to fix here does not have any actual damage. Admittedly, the code base of Flink is not perfect. Yet, we don't encourage pure cleanup changes like this. -- 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